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…
Reference in New Issue
Block a user