This commit is contained in:
Christian Bundy 2023-11-27 02:02:06 +13:00 committed by GitHub
commit 217cfd15d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)