]> git.codecow.com Git - nano25519.git/commitdiff
Fill verify buffer to fail closed at instantiation.
authorChris Duncan <chris@zoso.dev>
Sat, 29 Aug 2026 07:04:43 +0000 (00:04 -0700)
committerChris Duncan <chris@zoso.dev>
Sat, 29 Aug 2026 07:04:43 +0000 (00:04 -0700)
src/assembly/index.ts

index b827b8aa52cdf31d7e1aac7196784ea72713145d..c66fd8b065af475e4afbf391a72b06d19e2d7ff9 100644 (file)
@@ -23,7 +23,7 @@ const INPUT_SIG = new StaticArray<u8>(SIGNATURE_BYTELENGTH)
 
 const OUTPUT_DERIVE = new StaticArray<u8>(KEY_BYTELENGTH)
 const OUTPUT_SIGN = new StaticArray<u8>(SIGNATURE_BYTELENGTH)
-const OUTPUT_VERIFY = new StaticArray<u8>(MAX_VERIFY_BLOCKS)
+const OUTPUT_VERIFY = new StaticArray<u8>(MAX_VERIFY_BLOCKS).fill(255)
 
 /** Returns a pointer to the static message input buffer. */
 export function ptrInputMsg (): usize {