Lines Matching defs:x2
109 /* Compute the x-coordinate x1/z1 for the point (x1/z1)+(x2/x2) in Montgomery
116 const BIGNUM *x2, const BIGNUM *z2, BN_CTX *ctx)
129 if (!group->meth->field_mul(group, z1, z1, x2, ctx)) goto err;
143 /* Compute the x, y affine coordinates from the point (x1, z1) (x2, z2)
153 BIGNUM *z1, BIGNUM *x2, BIGNUM *z2, BN_CTX *ctx)
160 BN_zero(x2);
167 if (!BN_copy(x2, x)) return 0;
187 if (!BN_GF2m_add(z2, z2, x2)) goto err;
198 if (!group->meth->field_mul(group, x2, x1, t3, ctx)) goto err;
199 if (!BN_GF2m_add(z2, x2, x)) goto err;
220 BIGNUM *x1, *x2, *z1, *z2;
246 x2 = &r->X;
252 if (!group->meth->field_sqr(group, x2, z2, ctx)) goto err;
253 if (!BN_GF2m_add(x2, x2, &group->b)) goto err; /* x2 = x^4 + b */
275 if (!gf2m_Madd(group, &point->X, x1, z1, x2, z2, ctx)) goto err;
276 if (!gf2m_Mdouble(group, x2, z2, ctx)) goto err;
280 if (!gf2m_Madd(group, &point->X, x2, z2, x1, z1, ctx)) goto err;
289 i = gf2m_Mxy(group, &point->X, &point->Y, x1, z1, x2, z2, ctx);