From: Chris Duncan Date: Sat, 26 Sep 2026 08:37:19 +0000 (-0700) Subject: Fix Uint32Array length. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=74acc9a14226593725cc4686d4b0650bbf295ac9;p=nano25519.git Fix Uint32Array length. --- diff --git a/src/lib/primordials.ts b/src/lib/primordials.ts index 6c67d63..b85fe56 100644 --- a/src/lib/primordials.ts +++ b/src/lib/primordials.ts @@ -147,7 +147,7 @@ export function words (bytes: Bytes): Words { if (offset !== 0) { throw new Nano25519RangeError('Unexpected byte offset', { cause: offset }) } - return new Words(bytes.buffer, 0, getByteLength.call(bytes)) + return new Words(bytes.buffer, 0, getByteLength.call(bytes) >> 2) } const LOWER = '0123456789abcdef'