This commit is contained in:
Christian Bundy
2023-11-27 02:02:06 +13:00
committed by GitHub
+1 -1
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)