Lines Matching defs:x2
84 /* Compute the x-coordinate x1/z1 for the point (x1/z1)+(x2/x2) in
89 gf2m_Madd(const mp_int *x, mp_int *x1, mp_int *z1, mp_int *x2, mp_int *z2,
102 MP_CHECKOK(group->meth->field_mul(z1, x2, z1, group->meth));
115 /* Compute the x, y affine coordinates from the point (x1, z1) (x2, z2)
122 mp_int *x2, mp_int *z2, const ECGroup *group)
131 MP_CHECKOK(mp_init(&t3, FLAG(x2)));
132 MP_CHECKOK(mp_init(&t4, FLAG(x2)));
133 MP_CHECKOK(mp_init(&t5, FLAG(x2)));
136 mp_zero(x2);
143 MP_CHECKOK(mp_copy(x, x2));
160 MP_CHECKOK(group->meth->field_add(z2, x2, z2, group->meth));
171 MP_CHECKOK(group->meth->field_mul(x1, &t3, x2, group->meth));
172 MP_CHECKOK(group->meth->field_add(x2, x, z2, group->meth));
199 mp_int x1, x2, z1, z2;
204 MP_DIGITS(&x2) = 0;
208 MP_CHECKOK(mp_init(&x2, FLAG(n)));
223 MP_CHECKOK(group->meth->field_sqr(&z2, &x2, group->meth));
224 MP_CHECKOK(group->meth->field_add(&x2, &group->curveb, &x2, group->meth)); /* x2
254 MP_CHECKOK(gf2m_Madd(px, &x1, &z1, &x2, &z2, group, FLAG(n)));
255 MP_CHECKOK(gf2m_Mdouble(&x2, &z2, group, FLAG(n)));
257 MP_CHECKOK(gf2m_Madd(px, &x2, &z2, &x1, &z1, group, FLAG(n)));
267 i = gf2m_Mxy(px, py, &x1, &z1, &x2, &z2, group);
274 MP_CHECKOK(mp_copy(&x2, rx));
280 mp_clear(&x2);