From 68cb002951e7876273f532d7a4b0c28908dc6620 Mon Sep 17 00:00:00 2001 From: Pascal Perrenoud Date: Wed, 11 Sep 2024 22:44:06 +0200 Subject: [PATCH] Reduce useless salt size --- src/kdf.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kdf.ts b/src/kdf.ts index e4249c2..dbd62b8 100644 --- a/src/kdf.ts +++ b/src/kdf.ts @@ -59,7 +59,7 @@ export async function hkdf(key: Uint8Array, usage: Usage, context?: string): Pro { name: 'HKDF', hash: 'SHA-512', - salt: new Uint8Array(32), + salt: new Uint8Array(16), info }, material,