diff --git a/src/packet/secret_key.js b/src/packet/secret_key.js index b7d5bdf3..5fb67b47 100644 --- a/src/packet/secret_key.js +++ b/src/packet/secret_key.js @@ -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) {