Lines Matching refs:z

74     ossl_gf_sqr(p->x, q->z);  in point_double_internal()
75 gf_add_nr(p->z, p->x, p->x); /* 2+e */ in point_double_internal()
76 gf_subx_nr(a, p->z, p->t, 4); /* 6+e */ in point_double_internal()
80 ossl_gf_mul(p->z, p->t, a); in point_double_internal()
103 gf_add(b->z, a->z, a->z); in pt_to_pniels()
113 ossl_gf_mul(e->x, d->z, e->y); in pniels_to_pt()
114 ossl_gf_mul(e->y, d->z, eu); in pniels_to_pt()
115 ossl_gf_sqr(e->z, d->z); in pniels_to_pt()
123 gf_copy(e->z, ONE); in niels_to_pt()
138 gf_sub_nr(d->y, d->z, d->x); /* 3+e */ in add_niels_to_pt()
139 gf_add_nr(a, d->x, d->z); /* 2+e */ in add_niels_to_pt()
140 ossl_gf_mul(d->z, a, d->y); in add_niels_to_pt()
159 gf_add_nr(d->y, d->z, d->x); /* 2+e */ in sub_niels_from_pt()
160 gf_sub_nr(a, d->z, d->x); /* 3+e */ in sub_niels_from_pt()
161 ossl_gf_mul(d->z, a, d->y); in sub_niels_from_pt()
173 ossl_gf_mul(L0, p->z, pn->z); in add_pniels_to_pt()
174 gf_copy(p->z, L0); in add_pniels_to_pt()
183 ossl_gf_mul(L0, p->z, pn->z); in sub_pniels_from_pt()
184 gf_copy(p->z, L0); in sub_pniels_from_pt()
210 ossl_gf_mul(b, p->z, p->t); in ossl_curve448_point_valid()
217 ossl_gf_sqr(b, p->z); in ossl_curve448_point_valid()
220 out &= ~gf_eq(p->z, ZERO); in ossl_curve448_point_valid()
284 gf x, y, z, t; in ossl_curve448_point_mul_by_ratio_and_encode_like_eddsa() local
297 gf_add(z, q->y, q->x); in ossl_curve448_point_mul_by_ratio_and_encode_like_eddsa()
298 ossl_gf_sqr(y, z); in ossl_curve448_point_mul_by_ratio_and_encode_like_eddsa()
300 gf_sub(z, t, x); in ossl_curve448_point_mul_by_ratio_and_encode_like_eddsa()
301 ossl_gf_sqr(x, q->z); in ossl_curve448_point_mul_by_ratio_and_encode_like_eddsa()
303 gf_sub(t, t, z); in ossl_curve448_point_mul_by_ratio_and_encode_like_eddsa()
305 ossl_gf_mul(y, z, u); in ossl_curve448_point_mul_by_ratio_and_encode_like_eddsa()
306 ossl_gf_mul(z, u, t); in ossl_curve448_point_mul_by_ratio_and_encode_like_eddsa()
311 gf_invert(z, z, 1); in ossl_curve448_point_mul_by_ratio_and_encode_like_eddsa()
312 ossl_gf_mul(t, x, z); in ossl_curve448_point_mul_by_ratio_and_encode_like_eddsa()
313 ossl_gf_mul(x, y, z); in ossl_curve448_point_mul_by_ratio_and_encode_like_eddsa()
322 OPENSSL_cleanse(z, sizeof(z)); in ossl_curve448_point_mul_by_ratio_and_encode_like_eddsa()
345 gf_sub(p->z, ONE, p->x); /* num = 1-y^2 */ in ossl_curve448_point_decode_like_eddsa_and_mul_by_ratio()
349 ossl_gf_mul(p->x, p->z, p->t); in ossl_curve448_point_decode_like_eddsa_and_mul_by_ratio()
352 ossl_gf_mul(p->x, p->t, p->z); /* sqrt(num / denom) */ in ossl_curve448_point_decode_like_eddsa_and_mul_by_ratio()
354 gf_copy(p->z, ONE); in ossl_curve448_point_decode_like_eddsa_and_mul_by_ratio()
367 ossl_gf_sqr(p->x, p->z); in ossl_curve448_point_decode_like_eddsa_and_mul_by_ratio()
368 gf_add(p->z, p->x, p->x); in ossl_curve448_point_decode_like_eddsa_and_mul_by_ratio()
369 gf_sub(a, p->z, d); in ossl_curve448_point_decode_like_eddsa_and_mul_by_ratio()
371 ossl_gf_mul(p->z, p->t, a); in ossl_curve448_point_decode_like_eddsa_and_mul_by_ratio()
475 ossl_gf_mul(q->z, q->t, q->y); /* y/x */ in ossl_curve448_point_mul_by_ratio_and_encode_like_x448()
476 ossl_gf_sqr(q->y, q->z); /* (y/x)^2 */ in ossl_curve448_point_mul_by_ratio_and_encode_like_x448()