Fixes for symmetrically encrypted session keys

This commit is contained in:
Bart Butler
2015-03-15 17:17:06 -07:00
committed by Tankred Hase
parent 6c4e0ed6a0
commit 2e4e9387a0
9 changed files with 243 additions and 107 deletions

View File

@@ -191,9 +191,9 @@ S2K.prototype.produce_key = function (passphrase, numBytes) {
module.exports.fromClone = function (clone) {
var s2k = new S2K();
this.algorithm = clone.algorithm;
this.type = clone.type;
this.c = clone.c;
this.salt = clone.salt;
s2k.algorithm = clone.algorithm;
s2k.type = clone.type;
s2k.c = clone.c;
s2k.salt = clone.salt;
return s2k;
};