]> git.codecow.com Git - nano25519.git/commitdiff
Do not fill sk which does not belong to this function, it's filled by caller.
authorChris Duncan <chris@zoso.dev>
Thu, 13 Aug 2026 07:04:27 +0000 (00:04 -0700)
committerChris Duncan <chris@zoso.dev>
Thu, 13 Aug 2026 07:04:27 +0000 (00:04 -0700)
src/assembly/index.ts

index 3a9f7f60a912ebbde04905fb48c8ff717fe73cb8..51e1b6df214b006192759864c723baf3960c5e7b 100644 (file)
@@ -75,7 +75,6 @@ function crypto_sign (s: StaticArray<u8>, m: usize, mlen: i32, sk: StaticArray<u
        az.fill(0)\r
        hram.fill(0)\r
        nonce.fill(0)\r
-       sk.fill(0)\r
        memory.fill(t, 0, PRIVATEKEY_BYTES)\r
 }\r
 \r