From: Chris Duncan Date: Sat, 26 Sep 2026 08:55:54 +0000 (-0700) Subject: Fix byte offsets in big-endian path. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=3a7c436ca987cf93e4fb7d95797f4f8ffe8dc1bb;p=nano25519.git Fix byte offsets in big-endian path. --- diff --git a/src/lib/wasm.ts b/src/lib/wasm.ts index 12e30b1..0f44b83 100644 --- a/src/lib/wasm.ts +++ b/src/lib/wasm.ts @@ -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),