only generate what is needed
This commit is contained in:
parent
a6b81b127b
commit
c69a92d694
|
@ -189,7 +189,7 @@ S2K.prototype.produce_key = function (passphrase, numBytes) {
|
|||
}
|
||||
i = 0;
|
||||
|
||||
while (rlength <= numBytes) {
|
||||
while (rlength < numBytes) {
|
||||
var result = round(prefix.subarray(0,i), this);
|
||||
arr.push(result);
|
||||
rlength += result.length;
|
||||
|
|
Loading…
Reference in New Issue
Block a user