From: Chris Duncan Date: Mon, 18 Aug 2025 04:40:01 +0000 (-0700) Subject: n is guaranteed to be less than 64 for each call to this function. X-Git-Tag: v0.10.5~41^2~78 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=03d835e527edd774b5cdcc1c2667adf3a52fe253;p=libnemo.git n is guaranteed to be less than 64 for each call to this function. --- diff --git a/src/lib/crypto/nano-nacl.ts b/src/lib/crypto/nano-nacl.ts index 33962ce..99556ed 100644 --- a/src/lib/crypto/nano-nacl.ts +++ b/src/lib/crypto/nano-nacl.ts @@ -418,8 +418,6 @@ export class NanoNaCl { const p: Float64Array[] = [new Float64Array(16), new Float64Array(16), new Float64Array(16), new Float64Array(16)] const q: Float64Array[] = [new Float64Array(16), new Float64Array(16), new Float64Array(16), new Float64Array(16)] - if (n < 64) return -1 - if (this.unpackneg(q, pk)) return -1 m.set(sm.subarray(0, n), 0)