const ge_frombytes_negate_vartime_u: FieldElement = fe()
const ge_frombytes_negate_vartime_v: FieldElement = fe()
-const ge_frombytes_negate_vartime_v2: FieldElement = fe()
-const ge_frombytes_negate_vartime_uv3: FieldElement = fe()
const ge_frombytes_negate_vartime_vx2: FieldElement = fe()
const ge_frombytes_negate_vartime_check: FieldElement = fe()
/**
): i32 {
const u = ge_frombytes_negate_vartime_u
const v = ge_frombytes_negate_vartime_v
- const v2 = ge_frombytes_negate_vartime_v2
- const uv3 = ge_frombytes_negate_vartime_uv3
const vx2 = ge_frombytes_negate_vartime_vx2
const check = ge_frombytes_negate_vartime_check
// v = dy²+1
v[0] += 1
- // v2 = v²
- fe_sq(v2, v)
- // uv3 = v³
- fe_mul(uv3, v2, v)
- // uv3 = uv³
- fe_mul(uv3, uv3, u)
-
- // x = v⁴
- fe_sq(h.X, v2)
- // x = uv⁷
- fe_mul(h.X, h.X, uv3)
-
- // x = (uv⁷)⁽𐞥⁻⁵⁾⸍⁸
+ // x = uv
+ fe_mul(h.X, u, v)
+ // x = (uv)⁽𐞥⁻⁵⁾⸍⁸
fe_pow22523(h.X, h.X, t_fe_0, t_fe_1, t_fe_2)
-
- // x = uv³((uv⁷)⁽𐞥⁻⁵⁾⸍⁸) = u⁽𐞥⁺³⁾⸍⁸v⁽⁷𐞥⁻¹¹⁾⸍⁸
- fe_mul(h.X, h.X, uv3)
+ // x = u(uv)⁽𐞥⁻⁵⁾⸍⁸
+ fe_mul(h.X, u, h.X)
// vx2 = x²
fe_sq(vx2, h.X)