]> git.codecow.com Git - nano25519.git/commitdiff
Rename variables.
authorChris Duncan <chris@zoso.dev>
Fri, 2 Oct 2026 06:37:39 +0000 (23:37 -0700)
committerChris Duncan <chris@zoso.dev>
Fri, 2 Oct 2026 06:37:39 +0000 (23:37 -0700)
src/assembly/ed25519/ge.ts

index a986d8b042961cec0a216298c2a129c3f727328a..363fbc2c3c058dc87a4a834c0911f012de7e910e 100644 (file)
@@ -156,7 +156,7 @@ const ge_frombytes_vxx: FieldElement = fe()
 const ge_frombytes_m_root_check: FieldElement = fe()
 const ge_frombytes_p_root_check: FieldElement = fe()
 const ge_frombytes_negx: FieldElement = fe()
-const ge_frombytes_x_sqrtm1: FieldElement = fe()
+const x_sqrtm1: FieldElement = fe()
 /**
  * Constant-time point negation converted from byte representation.
  *
@@ -169,7 +169,6 @@ export function ge_frombytes (h: ge_p3, s: StaticArray<u8>): i32 {
        const m_root_check = ge_frombytes_m_root_check
        const p_root_check = ge_frombytes_p_root_check
        const negx = ge_frombytes_negx
-       const x_sqrtm1 = ge_frombytes_x_sqrtm1
        let has_m_root: u8
        let has_p_root: u8
 
@@ -211,11 +210,10 @@ export function ge_frombytes (h: ge_p3, s: StaticArray<u8>): i32 {
        return i32(has_m_root | has_p_root) - 1
 }
 
-const ge_has_small_order_y_sqrtm1: FieldElement = fe()
+const y_sqrtm1: FieldElement = fe()
 const ge_has_small_order_c: FieldElement = fe()
 /** return 1 if p has small order else return 0 */
 export function ge_has_small_order (p: ge_p3): i32 {
-       const y_sqrtm1 = ge_has_small_order_y_sqrtm1
        const c = ge_has_small_order_c
        let ret: i32 = 0