Mark isDecrypted flag when the key is encrypted

This commit is contained in:
evilaliv3 2016-04-25 18:35:57 +02:00
parent 61470ad068
commit 1007637f39

View File

@ -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) {