Lines Matching refs:x2
107 /* Compute the x-coordinate x1/z1 for the point (x1/z1)+(x2/x2) in Montgomery
114 const BIGNUM *x2, const BIGNUM *z2, BN_CTX *ctx)
127 if (!group->meth->field_mul(group, z1, z1, x2, ctx)) goto err;
141 /* Compute the x, y affine coordinates from the point (x1, z1) (x2, z2)
151 BIGNUM *z1, BIGNUM *x2, BIGNUM *z2, BN_CTX *ctx)
158 BN_zero(x2);
165 if (!BN_copy(x2, x)) return 0;
185 if (!BN_GF2m_add(z2, z2, x2)) goto err;
196 if (!group->meth->field_mul(group, x2, x1, t3, ctx)) goto err;
197 if (!BN_GF2m_add(z2, x2, x)) goto err;
218 BIGNUM *x1, *x2, *z1, *z2;
244 x2 = &r->X;
250 if (!group->meth->field_sqr(group, x2, z2, ctx)) goto err;
251 if (!BN_GF2m_add(x2, x2, &group->b)) goto err; /* x2 = x^4 + b */
271 if (!gf2m_Madd(group, &point->X, x1, z1, x2, z2, ctx)) goto err;
272 if (!gf2m_Mdouble(group, x2, z2, ctx)) goto err;
276 if (!gf2m_Madd(group, &point->X, x2, z2, x1, z1, ctx)) goto err;
286 i = gf2m_Mxy(group, &point->X, &point->Y, x1, z1, x2, z2, ctx);