mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-06-04 13:16:42 +00:00
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…
x
Reference in New Issue
Block a user