Remove unused argument from crypto_kdf
Problem: We're passing an extra argument, which looks like it's using the method signature for `TypedArray.prototype.subarray()`, which gives you the option of setting the end of the array. Since this method doesn't give us an optional third parameter the argument is being ignored. Solution: Remove the unused argument.
This commit is contained in:
parent
a546f3e51d
commit
34a61e9547
@ -26,7 +26,7 @@ module.exports.crypto_kdf_derive_from_key = function crypto_kdf_derive_from_key
|
||||
var ctx_padded = new Uint8Array(blake2b.PERSONALBYTES)
|
||||
var salt = new Uint8Array(blake2b.SALTBYTES)
|
||||
|
||||
ctx_padded.set(ctx, 0, module.exports.crypto_kdf_CONTEXTBYTES)
|
||||
ctx_padded.set(ctx, 0)
|
||||
STORE64_LE(salt, subkey_id)
|
||||
|
||||
var outlen = Math.min(subkey.length, module.exports.crypto_kdf_BYTES_MAX)
|
||||
|
Loading…
Reference in New Issue
Block a user