]> git.codecow.com Git - nano25519.git/commitdiff
Clear new locals after verification.
authorChris Duncan <chris@codecow.com>
Mon, 9 Nov 2026 18:34:05 +0000 (10:34 -0800)
committerChris Duncan <chris@codecow.com>
Mon, 9 Nov 2026 18:34:05 +0000 (10:34 -0800)
src/assembly/index.ts

index f3cac5753ca1d7b72965fb5b20ccd4f3e11f054c..59e84ee14224a42e20e5b4fa682c0af8547df7f7 100644 (file)
@@ -309,6 +309,8 @@ export function verify_blocks (count: i32): void {
        // Clear message buffer and input locals
        INPUT_MSG.fill(0)
        h.fill(0)
+       h_pair.fill(0)
        pub.fill(0)
        sig.fill(0)
+       sig_pair.fill(0)
 }