From: Chris Duncan Date: Fri, 2 Oct 2026 06:37:39 +0000 (-0700) Subject: Rename variables. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=689e4d40c0a86c696d9981cedcbda43ec2f658ae;p=nano25519.git Rename variables. --- diff --git a/src/assembly/ed25519/ge.ts b/src/assembly/ed25519/ge.ts index a986d8b..363fbc2 100644 --- a/src/assembly/ed25519/ge.ts +++ b/src/assembly/ed25519/ge.ts @@ -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): 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): 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