mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-03-05 16:48:51 +00:00
OP-01-005 Side-channel leak in RSA decryption (High). Add config option for RSA blinding, default true. Update jsbn to 1.3. Remove decrypted packets after Message.decrypt().
This commit is contained in:
@@ -257,6 +257,13 @@ describe('Basic', function() {
|
||||
expect(decrypted).to.equal(plaintext);
|
||||
done();
|
||||
});
|
||||
|
||||
it('Decrypt message 2x', function() {
|
||||
decrypted = openpgp.decryptMessage(privKey, message);
|
||||
var decrypted2 = openpgp.decryptMessage(privKey, message);
|
||||
expect(decrypted).to.equal(decrypted2);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
describe("Message 3DES decryption", function() {
|
||||
|
||||
Reference in New Issue
Block a user