mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-03-13 11:55:01 +00:00
Fixes for symmetrically encrypted session keys
This commit is contained in:
committed by
Tankred Hase
parent
6c4e0ed6a0
commit
2e4e9387a0
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user