From bff802337bfa8b154bbc2d004f6ab7fadb03ff71 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Sat, 23 Nov 2024 21:40:41 +0000 Subject: [PATCH] argon2: fix maxmem --- src/argon2.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/argon2.ts b/src/argon2.ts index de0a375..c9da38d 100644 --- a/src/argon2.ts +++ b/src/argon2.ts @@ -202,7 +202,7 @@ function argon2Init(type: Types, password: Input, salt: Input, opts: ArgonOpts) ...opts, version: opts.version || 0x13, dkLen: opts.dkLen || 32, - maxmem: 2 ** 32, + maxmem: 2 ** 32 - 1, asyncTick: 10, }; // Validation