]> git.codecow.com Git - nano25519.git/commitdiff
Remove unused temp.
authorChris Duncan <chris@codecow.com>
Thu, 29 Oct 2026 15:57:10 +0000 (08:57 -0700)
committerChris Duncan <chris@codecow.com>
Thu, 29 Oct 2026 15:57:10 +0000 (08:57 -0700)
src/assembly/crypto_verify.ts
src/assembly/ed25519/ge.ts

index 218888776476668de1bf310c7a3abcc052080516..ac264828ae639f45af1567c477505b4e729ce1fa 100644 (file)
@@ -43,7 +43,7 @@ export function crypto_verify_decodepubkey (pub: StaticArray<u8>): StaticArray<g
        const b = ge_frombytes_negate_vartime(A, pub, t_u8x32, t_fe_0, t_fe_1, t_fe_2)
        clear_t()
        if (b != 0) return null
-       ge_p3_cache_odd_multiples(Ai, A, t_ge_p1p1, t_fe_0)
+       ge_p3_cache_odd_multiples(Ai, A, t_fe_0)
        return Ai
 }
 
@@ -102,7 +102,7 @@ export function crypto_verify_sodium (sig: StaticArray<u8>, M: StaticArray<u8>,
        blake2b.init().update(sig, 32).update(pub, 32).update(M, mlen).digest(h)
        sc_reduce(h)
 
-       ge_p3_cache_odd_multiples(Ai, A, t_ge_p1p1, t_fe_0)
+       ge_p3_cache_odd_multiples(Ai, A, t_fe_0)
        ge_double_scalarmult_vartime_to_p3(sb_ah, h, Ai, S)
        ge_p3_sub_p3(check, expected_r, sb_ah, t_ge_p3, t_fe_0)
 
@@ -137,7 +137,7 @@ export function crypto_verify_strict (sig: StaticArray<u8>, M: StaticArray<u8>,
        blake2b.init().update(sig, 32).update(pub, 32).update(M, mlen).digest(h)
        sc_reduce(h)
 
-       ge_p3_cache_odd_multiples(Ai, A, t_ge_p1p1, t_fe_0)
+       ge_p3_cache_odd_multiples(Ai, A, t_fe_0)
        ge_double_scalarmult_vartime_to_p3(sb_ah, h, Ai, S)
        ge_p3_tobytes(check_r, sb_ah, t_fe_0, t_fe_1, t_fe_2, t_fe_3, t_fe_4, t_fe_5, t_fe_6)
        clear_t()
index 3a1710510ae30e79dce57205ba7f884d597c53e5..af16ea9cb47a6ea70cfbf6667e3387c24fde229c 100644 (file)
@@ -385,7 +385,7 @@ const ge_p3_cache_odd_multiples_A2: ge_p3 = new ge_p3()
  * Computes a lookup table for multiples of the odd limbs of an extended
  * projective point so it can be cached and reused for performance.
  */
-export function ge_p3_cache_odd_multiples (Ai: StaticArray<ge_cached>, A: ge_p3, t_p1p1: ge_p1p1, t_fe: FieldElement): void {
+export function ge_p3_cache_odd_multiples (Ai: StaticArray<ge_cached>, A: ge_p3, t_fe: FieldElement): void {
        const A2 = ge_p3_cache_odd_multiples_A2
 
        ge_p3_to_cached(Ai[0], A)