Home
last modified time | relevance | path

Searched refs:EC_GROUP (Results 1 – 25 of 126) sorted by relevance

123456

/external/boringssl/src/crypto/fipsmodule/ec/
Dinternal.h111 OPENSSL_EXPORT int ec_bignum_to_scalar(const EC_GROUP *group, EC_SCALAR *out,
117 OPENSSL_EXPORT void ec_scalar_to_bytes(const EC_GROUP *group, uint8_t *out,
123 int ec_scalar_from_bytes(const EC_GROUP *group, EC_SCALAR *out,
129 void ec_scalar_reduce(const EC_GROUP *group, EC_SCALAR *out,
134 int ec_random_nonzero_scalar(const EC_GROUP *group, EC_SCALAR *out,
139 int ec_scalar_equal_vartime(const EC_GROUP *group, const EC_SCALAR *a,
143 int ec_scalar_is_zero(const EC_GROUP *group, const EC_SCALAR *a);
146 void ec_scalar_add(const EC_GROUP *group, EC_SCALAR *r, const EC_SCALAR *a,
150 void ec_scalar_sub(const EC_GROUP *group, EC_SCALAR *r, const EC_SCALAR *a,
154 void ec_scalar_neg(const EC_GROUP *group, EC_SCALAR *r, const EC_SCALAR *a);
[all …]
Dec.c272 EC_GROUP *ec_group_new(const EC_METHOD *meth) { in ec_group_new()
273 EC_GROUP *ret; in ec_group_new()
285 ret = OPENSSL_malloc(sizeof(EC_GROUP)); in ec_group_new()
290 OPENSSL_memset(ret, 0, sizeof(EC_GROUP)); in ec_group_new()
304 static int ec_group_set_generator(EC_GROUP *group, const EC_AFFINE *generator, in ec_group_set_generator()
349 EC_GROUP *EC_GROUP_new_curve_GFp(const BIGNUM *p, const BIGNUM *a, in EC_GROUP_new_curve_GFp()
366 EC_GROUP *ret = NULL; in EC_GROUP_new_curve_GFp()
390 int EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator, in EC_GROUP_set_generator()
442 static EC_GROUP *ec_group_new_from_data(const struct built_in_curve *curve) { in ec_group_new_from_data()
443 EC_GROUP *group = NULL; in ec_group_new_from_data()
[all …]
Dscalar.c24 int ec_bignum_to_scalar(const EC_GROUP *group, EC_SCALAR *out, in ec_bignum_to_scalar()
34 int ec_scalar_equal_vartime(const EC_GROUP *group, const EC_SCALAR *a, in ec_scalar_equal_vartime()
40 int ec_scalar_is_zero(const EC_GROUP *group, const EC_SCALAR *a) { in ec_scalar_is_zero()
48 int ec_random_nonzero_scalar(const EC_GROUP *group, EC_SCALAR *out, in ec_random_nonzero_scalar()
54 void ec_scalar_to_bytes(const EC_GROUP *group, uint8_t *out, size_t *out_len, in ec_scalar_to_bytes()
63 int ec_scalar_from_bytes(const EC_GROUP *group, EC_SCALAR *out, in ec_scalar_from_bytes()
84 void ec_scalar_reduce(const EC_GROUP *group, EC_SCALAR *out, in ec_scalar_reduce()
93 void ec_scalar_add(const EC_GROUP *group, EC_SCALAR *r, const EC_SCALAR *a, in ec_scalar_add()
101 void ec_scalar_sub(const EC_GROUP *group, EC_SCALAR *r, const EC_SCALAR *a, in ec_scalar_sub()
109 void ec_scalar_neg(const EC_GROUP *group, EC_SCALAR *r, const EC_SCALAR *a) { in ec_scalar_neg()
[all …]
Dsimple.c91 int ec_GFp_simple_group_init(EC_GROUP *group) { in ec_GFp_simple_group_init()
97 void ec_GFp_simple_group_finish(EC_GROUP *group) { in ec_GFp_simple_group_finish()
101 int ec_GFp_simple_group_set_curve(EC_GROUP *group, const BIGNUM *p, in ec_GFp_simple_group_set_curve()
145 int ec_GFp_simple_group_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, in ec_GFp_simple_group_get_curve()
167 void ec_GFp_simple_point_set_to_infinity(const EC_GROUP *group, in ec_GFp_simple_point_set_to_infinity()
174 void ec_GFp_simple_invert(const EC_GROUP *group, EC_RAW_POINT *point) { in ec_GFp_simple_invert()
178 int ec_GFp_simple_is_at_infinity(const EC_GROUP *group, in ec_GFp_simple_is_at_infinity()
183 int ec_GFp_simple_is_on_curve(const EC_GROUP *group, in ec_GFp_simple_is_on_curve()
197 void (*const felem_mul)(const EC_GROUP *, EC_FELEM *r, const EC_FELEM *a, in ec_GFp_simple_is_on_curve()
199 void (*const felem_sqr)(const EC_GROUP *, EC_FELEM *r, const EC_FELEM *a) = in ec_GFp_simple_is_on_curve()
[all …]
Dfelem.c26 int ec_bignum_to_felem(const EC_GROUP *group, EC_FELEM *out, const BIGNUM *in) { in ec_bignum_to_felem()
40 int ec_felem_to_bignum(const EC_GROUP *group, BIGNUM *out, const EC_FELEM *in) { in ec_felem_to_bignum()
47 void ec_felem_to_bytes(const EC_GROUP *group, uint8_t *out, size_t *out_len, in ec_felem_to_bytes()
52 int ec_felem_from_bytes(const EC_GROUP *group, EC_FELEM *out, const uint8_t *in, in ec_felem_from_bytes()
57 void ec_felem_neg(const EC_GROUP *group, EC_FELEM *out, const EC_FELEM *a) { in ec_felem_neg()
69 void ec_felem_add(const EC_GROUP *group, EC_FELEM *out, const EC_FELEM *a, in ec_felem_add()
76 void ec_felem_sub(const EC_GROUP *group, EC_FELEM *out, const EC_FELEM *a, in ec_felem_sub()
83 BN_ULONG ec_felem_non_zero_mask(const EC_GROUP *group, const EC_FELEM *a) { in ec_felem_non_zero_mask()
91 void ec_felem_select(const EC_GROUP *group, EC_FELEM *out, BN_ULONG mask, in ec_felem_select()
96 int ec_felem_equal(const EC_GROUP *group, const EC_FELEM *a, in ec_felem_equal()
Dec_montgomery.c79 int ec_GFp_mont_group_init(EC_GROUP *group) { in ec_GFp_mont_group_init()
87 void ec_GFp_mont_group_finish(EC_GROUP *group) { in ec_GFp_mont_group_finish()
93 int ec_GFp_mont_group_set_curve(EC_GROUP *group, const BIGNUM *p, in ec_GFp_mont_group_set_curve()
111 static void ec_GFp_mont_felem_to_montgomery(const EC_GROUP *group, in ec_GFp_mont_felem_to_montgomery()
117 static void ec_GFp_mont_felem_from_montgomery(const EC_GROUP *group, in ec_GFp_mont_felem_from_montgomery()
124 static void ec_GFp_mont_felem_inv0(const EC_GROUP *group, EC_FELEM *out, in ec_GFp_mont_felem_inv0()
130 void ec_GFp_mont_felem_mul(const EC_GROUP *group, EC_FELEM *r, in ec_GFp_mont_felem_mul()
136 void ec_GFp_mont_felem_sqr(const EC_GROUP *group, EC_FELEM *r, in ec_GFp_mont_felem_sqr()
142 void ec_GFp_mont_felem_to_bytes(const EC_GROUP *group, uint8_t *out, in ec_GFp_mont_felem_to_bytes()
149 int ec_GFp_mont_felem_from_bytes(const EC_GROUP *group, EC_FELEM *out, in ec_GFp_mont_felem_from_bytes()
[all …]
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/ec/
Dinternal.h111 OPENSSL_EXPORT int ec_bignum_to_scalar(const EC_GROUP *group, EC_SCALAR *out,
117 OPENSSL_EXPORT void ec_scalar_to_bytes(const EC_GROUP *group, uint8_t *out,
123 int ec_scalar_from_bytes(const EC_GROUP *group, EC_SCALAR *out,
129 void ec_scalar_reduce(const EC_GROUP *group, EC_SCALAR *out,
134 int ec_random_nonzero_scalar(const EC_GROUP *group, EC_SCALAR *out,
139 int ec_scalar_equal_vartime(const EC_GROUP *group, const EC_SCALAR *a,
143 int ec_scalar_is_zero(const EC_GROUP *group, const EC_SCALAR *a);
146 void ec_scalar_add(const EC_GROUP *group, EC_SCALAR *r, const EC_SCALAR *a,
150 void ec_scalar_sub(const EC_GROUP *group, EC_SCALAR *r, const EC_SCALAR *a,
154 void ec_scalar_neg(const EC_GROUP *group, EC_SCALAR *r, const EC_SCALAR *a);
[all …]
Dec.c272 EC_GROUP *ec_group_new(const EC_METHOD *meth) { in ec_group_new()
273 EC_GROUP *ret; in ec_group_new()
285 ret = OPENSSL_malloc(sizeof(EC_GROUP)); in ec_group_new()
290 OPENSSL_memset(ret, 0, sizeof(EC_GROUP)); in ec_group_new()
304 static int ec_group_set_generator(EC_GROUP *group, const EC_AFFINE *generator, in ec_group_set_generator()
349 EC_GROUP *EC_GROUP_new_curve_GFp(const BIGNUM *p, const BIGNUM *a, in EC_GROUP_new_curve_GFp()
366 EC_GROUP *ret = NULL; in EC_GROUP_new_curve_GFp()
390 int EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator, in EC_GROUP_set_generator()
442 static EC_GROUP *ec_group_new_from_data(const struct built_in_curve *curve) { in ec_group_new_from_data()
443 EC_GROUP *group = NULL; in ec_group_new_from_data()
[all …]
Dscalar.c24 int ec_bignum_to_scalar(const EC_GROUP *group, EC_SCALAR *out, in ec_bignum_to_scalar()
34 int ec_scalar_equal_vartime(const EC_GROUP *group, const EC_SCALAR *a, in ec_scalar_equal_vartime()
40 int ec_scalar_is_zero(const EC_GROUP *group, const EC_SCALAR *a) { in ec_scalar_is_zero()
48 int ec_random_nonzero_scalar(const EC_GROUP *group, EC_SCALAR *out, in ec_random_nonzero_scalar()
54 void ec_scalar_to_bytes(const EC_GROUP *group, uint8_t *out, size_t *out_len, in ec_scalar_to_bytes()
63 int ec_scalar_from_bytes(const EC_GROUP *group, EC_SCALAR *out, in ec_scalar_from_bytes()
84 void ec_scalar_reduce(const EC_GROUP *group, EC_SCALAR *out, in ec_scalar_reduce()
93 void ec_scalar_add(const EC_GROUP *group, EC_SCALAR *r, const EC_SCALAR *a, in ec_scalar_add()
101 void ec_scalar_sub(const EC_GROUP *group, EC_SCALAR *r, const EC_SCALAR *a, in ec_scalar_sub()
109 void ec_scalar_neg(const EC_GROUP *group, EC_SCALAR *r, const EC_SCALAR *a) { in ec_scalar_neg()
[all …]
Dsimple.c91 int ec_GFp_simple_group_init(EC_GROUP *group) { in ec_GFp_simple_group_init()
97 void ec_GFp_simple_group_finish(EC_GROUP *group) { in ec_GFp_simple_group_finish()
101 int ec_GFp_simple_group_set_curve(EC_GROUP *group, const BIGNUM *p, in ec_GFp_simple_group_set_curve()
145 int ec_GFp_simple_group_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, in ec_GFp_simple_group_get_curve()
167 void ec_GFp_simple_point_set_to_infinity(const EC_GROUP *group, in ec_GFp_simple_point_set_to_infinity()
174 void ec_GFp_simple_invert(const EC_GROUP *group, EC_RAW_POINT *point) { in ec_GFp_simple_invert()
178 int ec_GFp_simple_is_at_infinity(const EC_GROUP *group, in ec_GFp_simple_is_at_infinity()
183 int ec_GFp_simple_is_on_curve(const EC_GROUP *group, in ec_GFp_simple_is_on_curve()
197 void (*const felem_mul)(const EC_GROUP *, EC_FELEM *r, const EC_FELEM *a, in ec_GFp_simple_is_on_curve()
199 void (*const felem_sqr)(const EC_GROUP *, EC_FELEM *r, const EC_FELEM *a) = in ec_GFp_simple_is_on_curve()
[all …]
Dfelem.c26 int ec_bignum_to_felem(const EC_GROUP *group, EC_FELEM *out, const BIGNUM *in) { in ec_bignum_to_felem()
40 int ec_felem_to_bignum(const EC_GROUP *group, BIGNUM *out, const EC_FELEM *in) { in ec_felem_to_bignum()
47 void ec_felem_to_bytes(const EC_GROUP *group, uint8_t *out, size_t *out_len, in ec_felem_to_bytes()
52 int ec_felem_from_bytes(const EC_GROUP *group, EC_FELEM *out, const uint8_t *in, in ec_felem_from_bytes()
57 void ec_felem_neg(const EC_GROUP *group, EC_FELEM *out, const EC_FELEM *a) { in ec_felem_neg()
69 void ec_felem_add(const EC_GROUP *group, EC_FELEM *out, const EC_FELEM *a, in ec_felem_add()
76 void ec_felem_sub(const EC_GROUP *group, EC_FELEM *out, const EC_FELEM *a, in ec_felem_sub()
83 BN_ULONG ec_felem_non_zero_mask(const EC_GROUP *group, const EC_FELEM *a) { in ec_felem_non_zero_mask()
91 void ec_felem_select(const EC_GROUP *group, EC_FELEM *out, BN_ULONG mask, in ec_felem_select()
96 int ec_felem_equal(const EC_GROUP *group, const EC_FELEM *a, in ec_felem_equal()
Dec_montgomery.c79 int ec_GFp_mont_group_init(EC_GROUP *group) { in ec_GFp_mont_group_init()
87 void ec_GFp_mont_group_finish(EC_GROUP *group) { in ec_GFp_mont_group_finish()
93 int ec_GFp_mont_group_set_curve(EC_GROUP *group, const BIGNUM *p, in ec_GFp_mont_group_set_curve()
111 static void ec_GFp_mont_felem_to_montgomery(const EC_GROUP *group, in ec_GFp_mont_felem_to_montgomery()
117 static void ec_GFp_mont_felem_from_montgomery(const EC_GROUP *group, in ec_GFp_mont_felem_from_montgomery()
124 static void ec_GFp_mont_felem_inv0(const EC_GROUP *group, EC_FELEM *out, in ec_GFp_mont_felem_inv0()
130 void ec_GFp_mont_felem_mul(const EC_GROUP *group, EC_FELEM *r, in ec_GFp_mont_felem_mul()
136 void ec_GFp_mont_felem_sqr(const EC_GROUP *group, EC_FELEM *r, in ec_GFp_mont_felem_sqr()
142 void ec_GFp_mont_felem_to_bytes(const EC_GROUP *group, uint8_t *out, in ec_GFp_mont_felem_to_bytes()
149 int ec_GFp_mont_felem_from_bytes(const EC_GROUP *group, EC_FELEM *out, in ec_GFp_mont_felem_from_bytes()
[all …]
/external/rust/crates/quiche/deps/boringssl/src/include/openssl/
Dec.h115 OPENSSL_EXPORT EC_GROUP *EC_GROUP_new_by_curve_name(int nid);
118 OPENSSL_EXPORT void EC_GROUP_free(EC_GROUP *group);
121 OPENSSL_EXPORT EC_GROUP *EC_GROUP_dup(const EC_GROUP *a);
125 OPENSSL_EXPORT int EC_GROUP_cmp(const EC_GROUP *a, const EC_GROUP *b,
130 OPENSSL_EXPORT const EC_POINT *EC_GROUP_get0_generator(const EC_GROUP *group);
134 OPENSSL_EXPORT const BIGNUM *EC_GROUP_get0_order(const EC_GROUP *group);
137 OPENSSL_EXPORT int EC_GROUP_order_bits(const EC_GROUP *group);
141 OPENSSL_EXPORT int EC_GROUP_get_cofactor(const EC_GROUP *group,
149 OPENSSL_EXPORT int EC_GROUP_get_curve_GFp(const EC_GROUP *group, BIGNUM *out_p,
154 OPENSSL_EXPORT int EC_GROUP_get_curve_name(const EC_GROUP *group);
[all …]
Dec_key.h120 OPENSSL_EXPORT const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key);
125 OPENSSL_EXPORT int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group);
210 OPENSSL_EXPORT EC_KEY *EC_KEY_derive_from_secret(const EC_GROUP *group,
223 const EC_GROUP *group);
235 OPENSSL_EXPORT EC_GROUP *EC_KEY_parse_curve_name(CBS *cbs);
240 OPENSSL_EXPORT int EC_KEY_marshal_curve_name(CBB *cbb, const EC_GROUP *group);
247 OPENSSL_EXPORT EC_GROUP *EC_KEY_parse_parameters(CBS *cbs);
/external/boringssl/src/include/openssl/
Dec.h115 OPENSSL_EXPORT EC_GROUP *EC_GROUP_new_by_curve_name(int nid);
118 OPENSSL_EXPORT void EC_GROUP_free(EC_GROUP *group);
121 OPENSSL_EXPORT EC_GROUP *EC_GROUP_dup(const EC_GROUP *a);
125 OPENSSL_EXPORT int EC_GROUP_cmp(const EC_GROUP *a, const EC_GROUP *b,
130 OPENSSL_EXPORT const EC_POINT *EC_GROUP_get0_generator(const EC_GROUP *group);
134 OPENSSL_EXPORT const BIGNUM *EC_GROUP_get0_order(const EC_GROUP *group);
137 OPENSSL_EXPORT int EC_GROUP_order_bits(const EC_GROUP *group);
141 OPENSSL_EXPORT int EC_GROUP_get_cofactor(const EC_GROUP *group,
149 OPENSSL_EXPORT int EC_GROUP_get_curve_GFp(const EC_GROUP *group, BIGNUM *out_p,
154 OPENSSL_EXPORT int EC_GROUP_get_curve_name(const EC_GROUP *group);
[all …]
Dec_key.h120 OPENSSL_EXPORT const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key);
125 OPENSSL_EXPORT int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group);
210 OPENSSL_EXPORT EC_KEY *EC_KEY_derive_from_secret(const EC_GROUP *group,
223 const EC_GROUP *group);
235 OPENSSL_EXPORT EC_GROUP *EC_KEY_parse_curve_name(CBS *cbs);
240 OPENSSL_EXPORT int EC_KEY_marshal_curve_name(CBB *cbb, const EC_GROUP *group);
247 OPENSSL_EXPORT EC_GROUP *EC_KEY_parse_parameters(CBS *cbs);
/external/rust/crates/quiche/deps/boringssl/src/crypto/ec_extra/
Dinternal.h40 const EC_GROUP *group, EC_RAW_POINT *out, const uint8_t *dst,
48 const EC_GROUP *group, EC_SCALAR *out, const uint8_t *dst, size_t dst_len,
59 const EC_GROUP *group, EC_RAW_POINT *out, const uint8_t *dst,
70 const EC_GROUP *group, EC_SCALAR *out, const uint8_t *dst, size_t dst_len,
Dhash_to_curve.c175 static int hash_to_field2(const EC_GROUP *group, const EVP_MD *md, in hash_to_field2()
197 static int hash_to_scalar(const EC_GROUP *group, const EVP_MD *md, in hash_to_scalar()
215 static inline void mul_A(const EC_GROUP *group, EC_FELEM *out, in mul_A()
224 static inline void mul_minus_A(const EC_GROUP *group, EC_FELEM *out, in mul_minus_A()
234 static BN_ULONG sgn0_le(const EC_GROUP *group, const EC_FELEM *a) { in sgn0_le()
244 static int map_to_curve_simple_swu(const EC_GROUP *group, const EC_FELEM *Z, in map_to_curve_simple_swu()
248 void (*const felem_mul)(const EC_GROUP *, EC_FELEM *r, const EC_FELEM *a, in map_to_curve_simple_swu()
250 void (*const felem_sqr)(const EC_GROUP *, EC_FELEM *r, const EC_FELEM *a) = in map_to_curve_simple_swu()
310 static int hash_to_curve(const EC_GROUP *group, const EVP_MD *md, in hash_to_curve()
339 static int felem_from_u8(const EC_GROUP *group, EC_FELEM *out, uint8_t a) { in felem_from_u8()
[all …]
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLECGroupContext.java47 private final NativeRef.EC_GROUP groupCtx;
49 OpenSSLECGroupContext(NativeRef.EC_GROUP groupCtx) { in OpenSSLECGroupContext()
62 NativeRef.EC_GROUP groupRef = new NativeRef.EC_GROUP(ctx); in getCurveByName()
78 NativeRef.EC_GROUP getNativeRef() { in getNativeRef()
165 NativeRef.EC_GROUP groupRef = new NativeRef.EC_GROUP(group); in getInstance()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DOpenSSLECGroupContext.java48 private final NativeRef.EC_GROUP groupCtx;
50 OpenSSLECGroupContext(NativeRef.EC_GROUP groupCtx) { in OpenSSLECGroupContext()
63 NativeRef.EC_GROUP groupRef = new NativeRef.EC_GROUP(ctx); in getCurveByName()
79 NativeRef.EC_GROUP getNativeRef() { in getNativeRef()
166 NativeRef.EC_GROUP groupRef = new NativeRef.EC_GROUP(group); in getInstance()
/external/boringssl/src/crypto/trust_token/
Dvoprf.c31 typedef int (*hash_to_group_func_t)(const EC_GROUP *group, EC_RAW_POINT *out,
33 typedef int (*hash_to_scalar_func_t)(const EC_GROUP *group, EC_SCALAR *out,
37 const EC_GROUP *group;
63 static int cbb_add_point(CBB *out, const EC_GROUP *group, in cbb_add_point()
78 static int cbs_get_point(CBS *cbs, const EC_GROUP *group, EC_AFFINE *out) { in cbs_get_point()
89 static int scalar_to_cbb(CBB *out, const EC_GROUP *group, in scalar_to_cbb()
101 static int scalar_from_cbs(CBS *cbs, const EC_GROUP *group, EC_SCALAR *out) { in scalar_from_cbs()
115 const EC_GROUP *group = method->group; in voprf_generate_key()
138 const EC_GROUP *group = method->group; in voprf_client_key_from_bytes()
150 const EC_GROUP *group = method->group; in voprf_issuer_key_from_bytes()
[all …]
/external/boringssl/src/crypto/ecdh_extra/
Decdh_test.cc38 static bssl::UniquePtr<EC_GROUP> GetCurve(FileTest *t, const char *key) { in GetCurve()
45 return bssl::UniquePtr<EC_GROUP>(EC_GROUP_new_by_curve_name(NID_secp224r1)); in GetCurve()
48 return bssl::UniquePtr<EC_GROUP>(EC_GROUP_new_by_curve_name( in GetCurve()
52 return bssl::UniquePtr<EC_GROUP>(EC_GROUP_new_by_curve_name(NID_secp384r1)); in GetCurve()
55 return bssl::UniquePtr<EC_GROUP>(EC_GROUP_new_by_curve_name(NID_secp521r1)); in GetCurve()
73 bssl::UniquePtr<EC_GROUP> group = GetCurve(t, "Curve"); in TEST()
133 bssl::UniquePtr<EC_GROUP> group = GetWycheproofCurve(t, "curve", true); in RunWycheproofTest()
197 static bssl::UniquePtr<EC_GROUP> MakeCustomGroup() { in MakeCustomGroup()
238 bssl::UniquePtr<EC_GROUP> group( in MakeCustomGroup()
260 std::vector<bssl::UniquePtr<EC_GROUP>> groups; in TEST()
/external/rust/crates/quiche/deps/boringssl/src/crypto/ecdh_extra/
Decdh_test.cc38 static bssl::UniquePtr<EC_GROUP> GetCurve(FileTest *t, const char *key) { in GetCurve()
45 return bssl::UniquePtr<EC_GROUP>(EC_GROUP_new_by_curve_name(NID_secp224r1)); in GetCurve()
48 return bssl::UniquePtr<EC_GROUP>(EC_GROUP_new_by_curve_name( in GetCurve()
52 return bssl::UniquePtr<EC_GROUP>(EC_GROUP_new_by_curve_name(NID_secp384r1)); in GetCurve()
55 return bssl::UniquePtr<EC_GROUP>(EC_GROUP_new_by_curve_name(NID_secp521r1)); in GetCurve()
73 bssl::UniquePtr<EC_GROUP> group = GetCurve(t, "Curve"); in TEST()
133 bssl::UniquePtr<EC_GROUP> group = GetWycheproofCurve(t, "curve", true); in RunWycheproofTest()
197 static bssl::UniquePtr<EC_GROUP> MakeCustomGroup() { in MakeCustomGroup()
238 bssl::UniquePtr<EC_GROUP> group( in MakeCustomGroup()
260 std::vector<bssl::UniquePtr<EC_GROUP>> groups; in TEST()
/external/boringssl/src/crypto/ec_extra/
Dhash_to_curve.c171 static int hash_to_field2(const EC_GROUP *group, const EVP_MD *md, in hash_to_field2()
192 static int hash_to_scalar(const EC_GROUP *group, const EVP_MD *md, in hash_to_scalar()
209 static inline void mul_A(const EC_GROUP *group, EC_FELEM *out, in mul_A()
218 static inline void mul_minus_A(const EC_GROUP *group, EC_FELEM *out, in mul_minus_A()
228 static BN_ULONG sgn0_le(const EC_GROUP *group, const EC_FELEM *a) { in sgn0_le()
238 static int map_to_curve_simple_swu(const EC_GROUP *group, const EC_FELEM *Z, in map_to_curve_simple_swu()
242 void (*const felem_mul)(const EC_GROUP *, EC_FELEM *r, const EC_FELEM *a, in map_to_curve_simple_swu()
244 void (*const felem_sqr)(const EC_GROUP *, EC_FELEM *r, const EC_FELEM *a) = in map_to_curve_simple_swu()
304 static int hash_to_curve(const EC_GROUP *group, const EVP_MD *md, in hash_to_curve()
332 static int felem_from_u8(const EC_GROUP *group, EC_FELEM *out, uint8_t a) { in felem_from_u8()
[all …]
/external/boringssl/src/crypto/fipsmodule/ecdsa/
Decdsa_test.cc80 static bssl::UniquePtr<EC_GROUP> NewSecp160r1Group() { in NewSecp160r1Group()
95 bssl::UniquePtr<EC_GROUP> group( in NewSecp160r1Group()
199 bssl::UniquePtr<EC_GROUP> group; in TEST()
306 static bssl::UniquePtr<EC_GROUP> GetCurve(FileTest *t, const char *key) { in GetCurve()
313 return bssl::UniquePtr<EC_GROUP>(EC_GROUP_new_by_curve_name(NID_secp224r1)); in GetCurve()
316 return bssl::UniquePtr<EC_GROUP>( in GetCurve()
320 return bssl::UniquePtr<EC_GROUP>(EC_GROUP_new_by_curve_name(NID_secp384r1)); in GetCurve()
323 return bssl::UniquePtr<EC_GROUP>(EC_GROUP_new_by_curve_name(NID_secp521r1)); in GetCurve()
333 static bssl::UniquePtr<EC_GROUP> MakeCustomClone(const EC_GROUP *group) { in MakeCustomClone()
343 bssl::UniquePtr<EC_GROUP> ret( in MakeCustomClone()
[all …]

123456