Lines Matching defs:z1
119 * Compute the x-coordinate x1/z1 for the point (x1/z1)+(x2/x2) in Montgomery
126 BIGNUM *z1, const BIGNUM *x2, const BIGNUM *z2,
143 if (!group->meth->field_mul(group, z1, z1, x2, ctx))
145 if (!group->meth->field_mul(group, t2, x1, z1, ctx))
147 if (!BN_GF2m_add(z1, z1, x1))
149 if (!group->meth->field_sqr(group, z1, z1, ctx))
151 if (!group->meth->field_mul(group, x1, z1, t1, ctx))
164 * Compute the x, y affine coordinates from the point (x1, z1) (x2, z2)
174 BIGNUM *x1, BIGNUM *z1, BIGNUM *x2, BIGNUM *z2,
180 if (BN_is_zero(z1)) {
205 if (!group->meth->field_mul(group, t3, z1, z2, ctx))
208 if (!group->meth->field_mul(group, z1, z1, x, ctx))
210 if (!BN_GF2m_add(z1, z1, x1))
219 if (!group->meth->field_mul(group, z2, z2, z1, ctx))
269 BIGNUM *x1, *x2, *z1, *z2;
293 z1 = BN_CTX_get(ctx);
294 if (z1 == NULL)
301 bn_wexpand(z1, group->field.top);
307 if (!BN_one(z1))
308 goto err; /* z1 = 1 */
333 BN_consttime_swap(word & mask, z1, z2, group->field.top);
334 if (!gf2m_Madd(group, &point->X, x2, z2, x1, z1, ctx))
336 if (!gf2m_Mdouble(group, 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);