Lines Matching defs:x2
119 * Compute the x-coordinate x1/z1 for the point (x1/z1)+(x2/x2) in Montgomery
126 BIGNUM *z1, const BIGNUM *x2, const BIGNUM *z2,
143 if (!group->meth->field_mul(group, z1, z1, x2, ctx))
164 * Compute the x, y affine coordinates from the point (x1, z1) (x2, z2)
174 BIGNUM *x1, BIGNUM *z1, BIGNUM *x2, BIGNUM *z2,
181 BN_zero(x2);
187 if (!BN_copy(x2, x))
216 if (!BN_GF2m_add(z2, z2, x2))
236 if (!group->meth->field_mul(group, x2, x1, t3, ctx))
238 if (!BN_GF2m_add(z2, x2, x))
269 BIGNUM *x1, *x2, *z1, *z2;
297 x2 = &r->X;
302 bn_wexpand(x2, group->field.top);
311 if (!group->meth->field_sqr(group, x2, z2, ctx))
313 if (!BN_GF2m_add(x2, x2, &group->b))
314 goto err; /* x2 = x^4 + b */
332 BN_consttime_swap(word & mask, x1, x2, group->field.top);
334 if (!gf2m_Madd(group, &point->X, x2, z2, x1, z1, ctx))
338 BN_consttime_swap(word & mask, x1, x2, group->field.top);
346 i = gf2m_Mxy(group, &point->X, &point->Y, x1, z1, x2, z2, ctx);