Lines Matching defs:x1
109 /* Compute the x-coordinate x1/z1 for the point (x1/z1)+(x2/x2) in Montgomery
115 static int gf2m_Madd(const EC_GROUP *group, const BIGNUM *x, BIGNUM *x1, BIGNUM *z1,
128 if (!group->meth->field_mul(group, x1, x1, z2, ctx)) goto err;
130 if (!group->meth->field_mul(group, t2, x1, z1, ctx)) goto err;
131 if (!BN_GF2m_add(z1, z1, x1)) goto err;
133 if (!group->meth->field_mul(group, x1, z1, t1, ctx)) goto err;
134 if (!BN_GF2m_add(x1, x1, t2)) goto err;
143 /* Compute the x, y affine coordinates from the point (x1, z1) (x2, z2)
152 static int gf2m_Mxy(const EC_GROUP *group, const BIGNUM *x, const BIGNUM *y, BIGNUM *x1,
184 if (!BN_GF2m_add(z1, z1, x1)) goto err;
186 if (!group->meth->field_mul(group, x1, z2, x1, ctx)) goto err;
198 if (!group->meth->field_mul(group, x2, x1, t3, ctx)) goto err;
220 BIGNUM *x1, *x2, *z1, *z2;
242 x1 = BN_CTX_get(ctx);
249 if (!BN_GF2m_mod_arr(x1, &point->X, group->poly)) goto err; /* x1 = x */
251 if (!group->meth->field_sqr(group, z2, x1, ctx)) goto err; /* z2 = x1^2 = x^2 */
275 if (!gf2m_Madd(group, &point->X, x1, z1, x2, z2, ctx)) goto err;
280 if (!gf2m_Madd(group, &point->X, x2, z2, x1, z1, ctx)) goto err;
281 if (!gf2m_Mdouble(group, x1, z1, ctx)) goto err;
289 i = gf2m_Mxy(group, &point->X, &point->Y, x1, z1, x2, z2, ctx);