Lines Matching defs:z2
126 BIGNUM *z1, const BIGNUM *x2, const BIGNUM *z2,
141 if (!group->meth->field_mul(group, x1, x1, z2, ctx))
164 * Compute the x, y affine coordinates from the point (x1, z1) (x2, z2)
174 BIGNUM *x1, BIGNUM *z1, BIGNUM *x2, BIGNUM *z2,
182 BN_zero(z2);
186 if (BN_is_zero(z2)) {
189 if (!BN_GF2m_add(z2, x, y))
205 if (!group->meth->field_mul(group, t3, z1, z2, ctx))
212 if (!group->meth->field_mul(group, z2, z2, x, ctx))
214 if (!group->meth->field_mul(group, x1, z2, x1, ctx))
216 if (!BN_GF2m_add(z2, z2, x2))
219 if (!group->meth->field_mul(group, z2, z2, z1, ctx))
227 if (!BN_GF2m_add(t4, t4, z2))
238 if (!BN_GF2m_add(z2, x2, x))
241 if (!group->meth->field_mul(group, z2, z2, t4, ctx))
243 if (!BN_GF2m_add(z2, z2, y))
269 BIGNUM *x1, *x2, *z1, *z2;
298 z2 = &r->Y;
303 bn_wexpand(z2, group->field.top);
309 if (!group->meth->field_sqr(group, z2, x1, ctx))
310 goto err; /* z2 = x1^2 = x^2 */
311 if (!group->meth->field_sqr(group, x2, z2, ctx))
333 BN_consttime_swap(word & mask, z1, z2, group->field.top);
334 if (!gf2m_Madd(group, &point->X, x2, z2, x1, z1, ctx))
339 BN_consttime_swap(word & mask, z1, z2, group->field.top);
346 i = gf2m_Mxy(group, &point->X, &point->Y, x1, z1, x2, z2, ctx);