From: Chris Duncan Date: Mon, 25 Nov 2024 22:25:39 +0000 (-0800) Subject: Document change to crypto_hash function. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=bda56fbf04a35860f2b7c96c44167fdb0f5ab045;p=libnemo.git Document change to crypto_hash function. --- 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) {