]> git.codecow.com Git - nano25519.git/commitdiff
Fix byte offsets in big-endian path.
authorChris Duncan <chris@codecow.com>
Sat, 26 Sep 2026 08:55:54 +0000 (01:55 -0700)
committerChris Duncan <chris@codecow.com>
Sat, 26 Sep 2026 08:55:54 +0000 (01:55 -0700)
src/lib/wasm.ts

index 12e30b1720b6dbefb3d693faedfd72122ace20db..0f44b83ee764375688343693d2a3efe0b96b5cfc 100644 (file)
@@ -120,6 +120,7 @@ function setInputMsgEnd (m: Bytes, i: number): void {
  * the zero padding.
  */
 function setInputMsgBigEndian (m: View, i: number, p: number): void {
+       p <<= 2
        exports.setInputMsg(i,
                m.getUint32(p, true),
                m.getUint32(p + 1, true),