From: Chris Duncan Date: Sat, 26 Sep 2026 00:19:26 +0000 (-0700) Subject: Fix test page signature buffer aliasing. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=4d30311218cb20d7cc38dfae886dfb27366e63bf;p=nano25519.git Fix test page signature buffer aliasing. --- diff --git a/test/index.html b/test/index.html index 3ab659e..a95eb6e 100644 --- a/test/index.html +++ b/test/index.html @@ -422,7 +422,7 @@ SPDX-License-Identifier: GPL-3.0-or-later const blocks = [] for (let b = 0; b < nano25519.constants.MAX_VERIFY_BLOCKS; b++) { message = rand(32).bytes - signature = sign(message, privateKey, publicKey, 'nano25519') + signature = sign(message, privateKey, publicKey, 'nano25519').slice() blocks[b] = { hash: message, signature } } start = performance.now()