diff options
Diffstat (limited to 'packages/taler-util/src/taler-crypto.ts')
-rw-r--r-- | packages/taler-util/src/taler-crypto.ts | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/packages/taler-util/src/taler-crypto.ts b/packages/taler-util/src/taler-crypto.ts index cabe2b7d0..408b7e7c2 100644 --- a/packages/taler-util/src/taler-crypto.ts +++ b/packages/taler-util/src/taler-crypto.ts @@ -24,7 +24,7 @@ import * as nacl from "./nacl-fast.js"; import { hmacSha256, hmacSha512 } from "./kdf.js"; import bigint from "big-integer"; -import { argon2id } from "hash-wasm"; +import * as argon2 from "./argon2.js"; import { CoinEnvelope, CoinPublicKeyString, @@ -277,15 +277,13 @@ export async function hashArgon2id( hashLength, ); } - return await argon2id({ - password: password, - salt: salt, - iterations: iterations, - memorySize: memorySize, - hashLength: hashLength, - parallelism: 1, - outputType: "binary", - }); + return await argon2.hashArgon2id( + password, + salt, + iterations, + memorySize, + hashLength, + ); } export function eddsaGetPublic(eddsaPriv: Uint8Array): Uint8Array { |