]> git.codecow.com Git - nano25519.git/commitdiff
Clear signature buffer on error.
authorChris Duncan <chris@codecow.com>
Fri, 9 Oct 2026 23:43:36 +0000 (16:43 -0700)
committerChris Duncan <chris@codecow.com>
Fri, 9 Oct 2026 23:43:36 +0000 (16:43 -0700)
src/assembly/index.ts

index 180b46e64cc5cbf25c69661e24dfceb51c46dc3b..37dda5d379c4544dc42075810e6168e608f3bdc3 100644 (file)
@@ -206,6 +206,7 @@ export function verify (mlen: i32): void {
        if (mlen < 0 || mlen > MAX_MESSAGE_BYTELENGTH) {
                INPUT_MSG.fill(0)
                INPUT_PUB.fill(0)
+               INPUT_SIG.fill(0)
                raise(ERROR_INVALID_MESSAGE_LENGTH, mlen, MAX_MESSAGE_BYTELENGTH)
        }