From: Chris Duncan Date: Sat, 29 Aug 2026 07:04:43 +0000 (-0700) Subject: Fill verify buffer to fail closed at instantiation. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=95c59b0007e851328d08800599536b29f0711c39;p=nano25519.git Fill verify buffer to fail closed at instantiation. --- diff --git a/src/assembly/index.ts b/src/assembly/index.ts index b827b8a..c66fd8b 100644 --- a/src/assembly/index.ts +++ b/src/assembly/index.ts @@ -23,7 +23,7 @@ const INPUT_SIG = new StaticArray(SIGNATURE_BYTELENGTH) const OUTPUT_DERIVE = new StaticArray(KEY_BYTELENGTH) const OUTPUT_SIGN = new StaticArray(SIGNATURE_BYTELENGTH) -const OUTPUT_VERIFY = new StaticArray(MAX_VERIFY_BLOCKS) +const OUTPUT_VERIFY = new StaticArray(MAX_VERIFY_BLOCKS).fill(255) /** Returns a pointer to the static message input buffer. */ export function ptrInputMsg (): usize {