Lines Matching defs:x1
119 * Compute the x-coordinate x1/z1 for the point (x1/z1)+(x2/x2) in Montgomery
125 static int gf2m_Madd(const EC_GROUP *group, const BIGNUM *x, BIGNUM *x1,
141 if (!group->meth->field_mul(group, x1, x1, z2, ctx))
145 if (!group->meth->field_mul(group, t2, x1, z1, ctx))
147 if (!BN_GF2m_add(z1, z1, x1))
151 if (!group->meth->field_mul(group, x1, z1, t1, ctx))
153 if (!BN_GF2m_add(x1, x1, t2))
164 * Compute the x, y affine coordinates from the point (x1, z1) (x2, z2)
174 BIGNUM *x1, BIGNUM *z1, BIGNUM *x2, BIGNUM *z2,
210 if (!BN_GF2m_add(z1, z1, x1))
214 if (!group->meth->field_mul(group, x1, z2, x1, ctx))
236 if (!group->meth->field_mul(group, x2, x1, t3, ctx))
269 BIGNUM *x1, *x2, *z1, *z2;
292 x1 = BN_CTX_get(ctx);
300 bn_wexpand(x1, group->field.top);
305 if (!BN_GF2m_mod_arr(x1, &point->X, group->poly))
306 goto err; /* x1 = x */
309 if (!group->meth->field_sqr(group, z2, x1, ctx))
310 goto err; /* z2 = x1^2 = x^2 */
332 BN_consttime_swap(word & mask, x1, x2, group->field.top);
334 if (!gf2m_Madd(group, &point->X, x2, z2, x1, z1, ctx))
336 if (!gf2m_Mdouble(group, 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);