Lines Matching refs:y

42 static void gf_invert(gf y, const gf x, int assert_nonzero)  in gf_invert()  argument
54 gf_copy(y, t2); in gf_invert()
68 ossl_gf_sqr(a, q->y); in point_double_internal()
70 gf_add_nr(p->t, q->y, q->x); /* 2+e */ in point_double_internal()
81 ossl_gf_mul(p->y, p->t, d); in point_double_internal()
100 gf_sub(b->n->a, a->y, a->x); in pt_to_pniels()
101 gf_add(b->n->b, a->x, a->y); in pt_to_pniels()
111 gf_sub(e->y, d->n->b, d->n->a); in pniels_to_pt()
112 ossl_gf_mul(e->t, e->y, eu); in pniels_to_pt()
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()
120 gf_add(e->y, n->b, n->a); in niels_to_pt()
122 ossl_gf_mul(e->t, e->y, e->x); in niels_to_pt()
131 gf_sub_nr(b, d->y, d->x); /* 3+e */ in add_niels_to_pt()
133 gf_add_nr(b, d->x, d->y); /* 2+e */ in add_niels_to_pt()
134 ossl_gf_mul(d->y, e->b, b); in add_niels_to_pt()
136 gf_add_nr(c, a, d->y); /* 2+e */ in add_niels_to_pt()
137 gf_sub_nr(b, d->y, a); /* 3+e */ in add_niels_to_pt()
138 gf_sub_nr(d->y, d->z, d->x); /* 3+e */ in add_niels_to_pt()
140 ossl_gf_mul(d->z, a, d->y); in add_niels_to_pt()
141 ossl_gf_mul(d->x, d->y, b); in add_niels_to_pt()
142 ossl_gf_mul(d->y, a, c); in add_niels_to_pt()
152 gf_sub_nr(b, d->y, d->x); /* 3+e */ in sub_niels_from_pt()
154 gf_add_nr(b, d->x, d->y); /* 2+e */ in sub_niels_from_pt()
155 ossl_gf_mul(d->y, e->a, b); in sub_niels_from_pt()
157 gf_add_nr(c, a, d->y); /* 2+e */ in sub_niels_from_pt()
158 gf_sub_nr(b, d->y, a); /* 3+e */ in sub_niels_from_pt()
159 gf_add_nr(d->y, d->z, d->x); /* 2+e */ in sub_niels_from_pt()
161 ossl_gf_mul(d->z, a, d->y); in sub_niels_from_pt()
162 ossl_gf_mul(d->x, d->y, b); in sub_niels_from_pt()
163 ossl_gf_mul(d->y, a, c); in sub_niels_from_pt()
196 ossl_gf_mul(a, p->y, q->x); in ossl_curve448_point_eq()
197 ossl_gf_mul(b, q->y, p->x); in ossl_curve448_point_eq()
209 ossl_gf_mul(a, p->x, p->y); in ossl_curve448_point_valid()
213 ossl_gf_sqr(b, p->y); in ossl_curve448_point_valid()
284 gf x, y, z, t; in ossl_curve448_point_mul_by_ratio_and_encode_like_eddsa() local
295 ossl_gf_sqr(t, q->y); in ossl_curve448_point_mul_by_ratio_and_encode_like_eddsa()
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()
299 gf_sub(y, y, u); in ossl_curve448_point_mul_by_ratio_and_encode_like_eddsa()
304 ossl_gf_mul(x, t, y); 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()
313 ossl_gf_mul(x, y, z); in ossl_curve448_point_mul_by_ratio_and_encode_like_eddsa()
321 OPENSSL_cleanse(y, sizeof(y)); in ossl_curve448_point_mul_by_ratio_and_encode_like_eddsa()
341 succ = gf_deserialize(p->y, enc2, 1, 0); in ossl_curve448_point_decode_like_eddsa_and_mul_by_ratio()
344 ossl_gf_sqr(p->x, p->y); in ossl_curve448_point_decode_like_eddsa_and_mul_by_ratio()
361 ossl_gf_sqr(a, p->y); in ossl_curve448_point_decode_like_eddsa_and_mul_by_ratio()
363 gf_add(p->t, p->y, p->x); in ossl_curve448_point_decode_like_eddsa_and_mul_by_ratio()
372 ossl_gf_mul(p->y, p->t, d); 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()
477 gf_serialize(out, q->y, 1); in ossl_curve448_point_mul_by_ratio_and_encode_like_x448()