Home
last modified time | relevance | path

Searched refs:EC_FELEM (Results 1 – 8 of 8) sorted by relevance

/external/boringssl/src/crypto/fipsmodule/ec/
Dinternal.h111 } EC_FELEM; typedef
117 EC_FELEM X, Y, Z;
135 EC_FELEM *x, EC_FELEM *y);
168 void (*felem_mul)(const EC_GROUP *, EC_FELEM *r, const EC_FELEM *a,
169 const EC_FELEM *b);
170 void (*felem_sqr)(const EC_GROUP *, EC_FELEM *r, const EC_FELEM *a);
172 int (*bignum_to_felem)(const EC_GROUP *group, EC_FELEM *out,
175 const EC_FELEM *in);
214 EC_FELEM a, b; // Curve coefficients.
229 EC_FELEM field_minus_order;
[all …]
Dfelem.c25 int ec_bignum_to_felem(const EC_GROUP *group, EC_FELEM *out, const BIGNUM *in) { in ec_bignum_to_felem()
33 int ec_felem_to_bignum(const EC_GROUP *group, BIGNUM *out, const EC_FELEM *in) { in ec_felem_to_bignum()
37 void ec_felem_neg(const EC_GROUP *group, EC_FELEM *out, const EC_FELEM *a) { in ec_felem_neg()
49 void ec_felem_add(const EC_GROUP *group, EC_FELEM *out, const EC_FELEM *a, in ec_felem_add()
50 const EC_FELEM *b) { in ec_felem_add()
51 EC_FELEM tmp; in ec_felem_add()
56 void ec_felem_sub(const EC_GROUP *group, EC_FELEM *out, const EC_FELEM *a, in ec_felem_sub()
57 const EC_FELEM *b) { in ec_felem_sub()
58 EC_FELEM tmp; in ec_felem_sub()
63 BN_ULONG ec_felem_non_zero_mask(const EC_GROUP *group, const EC_FELEM *a) { in ec_felem_non_zero_mask()
[all …]
Dec_montgomery.c127 EC_FELEM *out, const EC_FELEM *in) { in ec_GFp_mont_felem_to_montgomery()
133 EC_FELEM *out, in ec_GFp_mont_felem_from_montgomery()
134 const EC_FELEM *in) { in ec_GFp_mont_felem_from_montgomery()
139 static void ec_GFp_mont_felem_inv(const EC_GROUP *group, EC_FELEM *out, in ec_GFp_mont_felem_inv()
140 const EC_FELEM *a) { in ec_GFp_mont_felem_inv()
145 void ec_GFp_mont_felem_mul(const EC_GROUP *group, EC_FELEM *r, in ec_GFp_mont_felem_mul()
146 const EC_FELEM *a, const EC_FELEM *b) { in ec_GFp_mont_felem_mul()
151 void ec_GFp_mont_felem_sqr(const EC_GROUP *group, EC_FELEM *r, in ec_GFp_mont_felem_sqr()
152 const EC_FELEM *a) { in ec_GFp_mont_felem_sqr()
157 int ec_GFp_mont_bignum_to_felem(const EC_GROUP *group, EC_FELEM *out, in ec_GFp_mont_bignum_to_felem()
[all …]
Dsimple.c175 OPENSSL_memset(&point->X, 0, sizeof(EC_FELEM)); in ec_GFp_simple_point_init()
176 OPENSSL_memset(&point->Y, 0, sizeof(EC_FELEM)); in ec_GFp_simple_point_init()
177 OPENSSL_memset(&point->Z, 0, sizeof(EC_FELEM)); in ec_GFp_simple_point_init()
181 OPENSSL_memcpy(&dest->X, &src->X, sizeof(EC_FELEM)); in ec_GFp_simple_point_copy()
182 OPENSSL_memcpy(&dest->Y, &src->Y, sizeof(EC_FELEM)); in ec_GFp_simple_point_copy()
183 OPENSSL_memcpy(&dest->Z, &src->Z, sizeof(EC_FELEM)); in ec_GFp_simple_point_copy()
206 OPENSSL_memcpy(&point->Z, &group->one, sizeof(EC_FELEM)); in ec_GFp_simple_point_set_affine_coordinates()
235 void (*const felem_mul)(const EC_GROUP *, EC_FELEM *r, const EC_FELEM *a, in ec_GFp_simple_is_on_curve()
236 const EC_FELEM *b) = group->meth->felem_mul; in ec_GFp_simple_is_on_curve()
237 void (*const felem_sqr)(const EC_GROUP *, EC_FELEM *r, const EC_FELEM *a) = in ec_GFp_simple_is_on_curve()
[all …]
Dp224-64.c206 static void p224_generic_to_felem(p224_felem out, const EC_FELEM *in) { in p224_generic_to_felem()
211 static void p224_felem_to_generic(EC_FELEM *out, const p224_felem in) { in p224_felem_to_generic()
966 const EC_GROUP *group, const EC_RAW_POINT *point, EC_FELEM *x, in ec_GFp_nistp224_point_get_affine_coordinates()
967 EC_FELEM *y) { in ec_GFp_nistp224_point_get_affine_coordinates()
1075 static void ec_GFp_nistp224_felem_mul(const EC_GROUP *group, EC_FELEM *r, in ec_GFp_nistp224_felem_mul()
1076 const EC_FELEM *a, const EC_FELEM *b) { in ec_GFp_nistp224_felem_mul()
1086 static void ec_GFp_nistp224_felem_sqr(const EC_GROUP *group, EC_FELEM *r, in ec_GFp_nistp224_felem_sqr()
1087 const EC_FELEM *a) { in ec_GFp_nistp224_felem_sqr()
1096 static int ec_GFp_nistp224_bignum_to_felem(const EC_GROUP *group, EC_FELEM *out, in ec_GFp_nistp224_bignum_to_felem()
1102 const EC_FELEM *in) { in ec_GFp_nistp224_felem_to_bignum()
Dec.c786 EC_FELEM x_felem, y_felem; in EC_POINT_get_affine_coordinates_GFp()
963 EC_FELEM x; in ec_get_x_coordinate_as_scalar()
1007 EC_FELEM x, y; in ec_point_get_affine_coordinate_bytes()
Dp256-x86_64.c445 const EC_RAW_POINT *point, EC_FELEM *x, in ecp_nistz256_get_affine()
446 EC_FELEM *y) { in ecp_nistz256_get_affine()
/external/boringssl/src/third_party/fiat/
Dp256.c103 static void fe_from_generic(fe out, const EC_FELEM *in) { in fe_from_generic()
107 static void fe_to_generic(EC_FELEM *out, const fe in) { in fe_to_generic()
831 const EC_GROUP *group, const EC_RAW_POINT *point, EC_FELEM *x_out, in ec_GFp_nistp256_point_get_affine_coordinates()
832 EC_FELEM *y_out) { in ec_GFp_nistp256_point_get_affine_coordinates()
1049 EC_FELEM tmp; in ec_GFp_nistp256_cmp_x_coordinate()