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