mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-03-30 15:08:32 +00:00
Mark isDecrypted flag when the key is encrypted
This commit is contained in:
parent
61470ad068
commit
1007637f39
@ -199,6 +199,7 @@ SecretKey.prototype.encrypt = function (passphrase) {
|
||||
arr.push(crypto.cfb.normalEncrypt(symmetric, key, cleartext, iv));
|
||||
|
||||
this.encrypted = util.concatUint8Array(arr);
|
||||
this.isDecrypted = false;
|
||||
};
|
||||
|
||||
function produceEncryptionKey(s2k, passphrase, algorithm) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user