]> git.codecow.com Git - nano25519.git/commitdiff
Enforce prevention of loading garbage data into unused lanes.
authorChris Duncan <chris@codecow.com>
Wed, 21 Oct 2026 04:10:20 +0000 (21:10 -0700)
committerChris Duncan <chris@codecow.com>
Wed, 21 Oct 2026 04:10:20 +0000 (21:10 -0700)
src/assembly/ed25519/fe.ts

index d5b95b6403a355df94a54d6aeee9b464d8677bf7..bf624723179dd5b9e197c2b045887c4e08a31184 100644 (file)
@@ -272,7 +272,7 @@ export function fe_mul (h: FieldElement, f: FieldElement, g: FieldElement): void
 
        const g0123: v128 = v128.load(changetype<usize>(g), 0)
        const g4567: v128 = v128.load(changetype<usize>(g), 16)
-       const g89xx: v128 = v128.load(changetype<usize>(g), 32)
+       const g89xx: v128 = v128.load64_zero(changetype<usize>(g), 32)
 
        // factor of 19 for wrap from h9 to h0
        const g0123_19: v128 = i32x4.mul(g0123, i32x4.splat(19))