From bda56fbf04a35860f2b7c96c44167fdb0f5ab045 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Mon, 25 Nov 2024 14:25:39 -0800 Subject: [PATCH] Document change to crypto_hash function. --- src/lib/workers/nacl-nano.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/workers/nacl-nano.ts b/src/lib/workers/nacl-nano.ts index 8941ff5..15e13db 100644 --- a/src/lib/workers/nacl-nano.ts +++ b/src/lib/workers/nacl-nano.ts @@ -516,6 +516,7 @@ function pow2523(o, i) { for (a = 0; a < 16; a++) o[a] = c[a]; } +// Note: difference from TweetNaCl - BLAKE2b used to hash instead of SHA-512. function crypto_hash(out, m, n) { const input = new Uint8Array(n) for (let i = 0; i < n; ++i) { -- 2.34.1