reset encrypted field to null when decrypting secret key

This commit is contained in:
Sanjana Rajan 2016-10-26 16:55:49 -07:00
parent 778f1b1be2
commit 8620220cfb

View File

@ -269,6 +269,7 @@ SecretKey.prototype.decrypt = function (passphrase) {
}
this.mpi = this.mpi.concat(parsedMPI);
this.isDecrypted = true;
this.encrypted = null;
return true;
};