/third_party/openssl/crypto/ec/ |
D | ec_local.h | 66 int (*point_init) (EC_POINT *); 67 void (*point_finish) (EC_POINT *); 68 void (*point_clear_finish) (EC_POINT *); 69 int (*point_copy) (EC_POINT *, const EC_POINT *); 78 int (*point_set_to_infinity) (const EC_GROUP *, EC_POINT *); 80 EC_POINT *, const BIGNUM *x, 84 const EC_POINT *, BIGNUM *x, 87 int (*point_set_affine_coordinates) (const EC_GROUP *, EC_POINT *, 90 int (*point_get_affine_coordinates) (const EC_GROUP *, const EC_POINT *, 92 int (*point_set_compressed_coordinates) (const EC_GROUP *, EC_POINT *, [all …]
|
D | ec_print.c | 15 const EC_POINT *point, in EC_POINT_point2bn() 34 EC_POINT *EC_POINT_bn2point(const EC_GROUP *group, in EC_POINT_bn2point() 35 const BIGNUM *bn, EC_POINT *point, BN_CTX *ctx) in EC_POINT_bn2point() 39 EC_POINT *ret; in EC_POINT_bn2point() 76 const EC_POINT *point, in EC_POINT_point2hex() 107 EC_POINT *EC_POINT_hex2point(const EC_GROUP *group, in EC_POINT_hex2point() 108 const char *buf, EC_POINT *point, BN_CTX *ctx) in EC_POINT_hex2point() 110 EC_POINT *ret = NULL; in EC_POINT_hex2point()
|
D | ec_lib.c | 330 int EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator, in EC_GROUP_set_generator() 400 const EC_POINT *EC_GROUP_get0_generator(const EC_GROUP *group) in EC_GROUP_get0_generator() 650 EC_POINT *EC_POINT_new(const EC_GROUP *group) in EC_POINT_new() 652 EC_POINT *ret; in EC_POINT_new() 680 void EC_POINT_free(EC_POINT *point) in EC_POINT_free() 690 void EC_POINT_clear_free(EC_POINT *point) in EC_POINT_clear_free() 702 int EC_POINT_copy(EC_POINT *dest, const EC_POINT *src) in EC_POINT_copy() 720 EC_POINT *EC_POINT_dup(const EC_POINT *a, const EC_GROUP *group) in EC_POINT_dup() 722 EC_POINT *t; in EC_POINT_dup() 739 const EC_METHOD *EC_POINT_method_of(const EC_POINT *point) in EC_POINT_method_of() [all …]
|
D | ec2_smpl.c | 213 int ec_GF2m_simple_point_init(EC_POINT *point) in ec_GF2m_simple_point_init() 229 void ec_GF2m_simple_point_finish(EC_POINT *point) in ec_GF2m_simple_point_finish() 237 void ec_GF2m_simple_point_clear_finish(EC_POINT *point) in ec_GF2m_simple_point_clear_finish() 249 int ec_GF2m_simple_point_copy(EC_POINT *dest, const EC_POINT *src) in ec_GF2m_simple_point_copy() 268 EC_POINT *point) in ec_GF2m_simple_point_set_to_infinity() 280 EC_POINT *point, in ec_GF2m_simple_point_set_affine_coordinates() 312 const EC_POINT *point, in ec_GF2m_simple_point_get_affine_coordinates() 349 int ec_GF2m_simple_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, in ec_GF2m_simple_add() 350 const EC_POINT *b, BN_CTX *ctx) in ec_GF2m_simple_add() 464 int ec_GF2m_simple_dbl(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, in ec_GF2m_simple_dbl() [all …]
|
D | ec_oct.c | 18 int EC_POINT_set_compressed_coordinates(const EC_GROUP *group, EC_POINT *point, in EC_POINT_set_compressed_coordinates() 54 EC_POINT *point, const BIGNUM *x, in EC_POINT_set_compressed_coordinates_GFp() 62 EC_POINT *point, const BIGNUM *x, in EC_POINT_set_compressed_coordinates_GF2m() 70 size_t EC_POINT_point2oct(const EC_GROUP *group, const EC_POINT *point, in EC_POINT_point2oct() 101 int EC_POINT_oct2point(const EC_GROUP *group, EC_POINT *point, in EC_POINT_oct2point() 129 size_t EC_POINT_point2buf(const EC_GROUP *group, const EC_POINT *point, in EC_POINT_point2buf()
|
D | ec_mult.c | 37 EC_POINT **points; /* array with pre-calculated multiples of 94 EC_POINT **pts; in EC_ec_pre_comp_free() 139 int ec_scalar_mul_ladder(const EC_GROUP *group, EC_POINT *r, in ec_scalar_mul_ladder() 140 const BIGNUM *scalar, const EC_POINT *point, in ec_scalar_mul_ladder() 144 EC_POINT *p = NULL; in ec_scalar_mul_ladder() 145 EC_POINT *s = NULL; in ec_scalar_mul_ladder() 403 int ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, in ec_wNAF_mul() 404 size_t num, const EC_POINT *points[], const BIGNUM *scalars[], in ec_wNAF_mul() 407 const EC_POINT *generator = NULL; in ec_wNAF_mul() 408 EC_POINT *tmp = NULL; in ec_wNAF_mul() [all …]
|
D | ecp_smpl.c | 315 int ec_GFp_simple_point_init(EC_POINT *point) in ec_GFp_simple_point_init() 331 void ec_GFp_simple_point_finish(EC_POINT *point) in ec_GFp_simple_point_finish() 338 void ec_GFp_simple_point_clear_finish(EC_POINT *point) in ec_GFp_simple_point_clear_finish() 346 int ec_GFp_simple_point_copy(EC_POINT *dest, const EC_POINT *src) in ec_GFp_simple_point_copy() 361 EC_POINT *point) in ec_GFp_simple_point_set_to_infinity() 369 EC_POINT *point, in ec_GFp_simple_set_Jprojective_coordinates_GFp() 429 const EC_POINT *point, in ec_GFp_simple_get_Jprojective_coordinates_GFp() 478 EC_POINT *point, in ec_GFp_simple_point_set_affine_coordinates() 496 const EC_POINT *point, in ec_GFp_simple_point_get_affine_coordinates() 609 int ec_GFp_simple_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, in ec_GFp_simple_add() [all …]
|
D | ecdh_ossl.c | 23 const EC_POINT *pub_key, const EC_KEY *ecdh) in ossl_ecdh_compute_key() 39 const EC_POINT *pub_key, const EC_KEY *ecdh) in ecdh_simple_compute_key() 42 EC_POINT *tmp = NULL; in ecdh_simple_compute_key()
|
D | ec_kmeth.c | 127 int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, in ECDH_compute_key() 181 const EC_POINT *pub_key)) in EC_KEY_METHOD_set_init() 200 const EC_POINT *pub_key, in EC_KEY_METHOD_set_compute_key() 248 const EC_POINT *pub_key)) in EC_KEY_METHOD_get_init() 274 const EC_POINT *pub_key, in EC_KEY_METHOD_get_compute_key()
|
D | ecp_nistz256.c | 613 const EC_POINT **point, in ecp_nistz256_windowed_mul() 799 static int ecp_nistz256_is_affine_G(const EC_POINT *generator) in ecp_nistz256_is_affine_G() 817 EC_POINT *P = NULL, *T = NULL; in ecp_nistz256_mult_precompute() 818 const EC_POINT *generator; in ecp_nistz256_mult_precompute() 932 __owur static int ecp_nistz256_set_from_affine(EC_POINT *out, const EC_GROUP *group, in ecp_nistz256_set_from_affine() 948 EC_POINT *r, in ecp_nistz256_points_mul() 951 const EC_POINT *points[], in ecp_nistz256_points_mul() 958 const EC_POINT *generator = NULL; in ecp_nistz256_points_mul() 960 const EC_POINT **new_points = NULL; in ecp_nistz256_points_mul() 993 EC_POINT *pre_comp_generator = EC_POINT_new(group); in ecp_nistz256_points_mul() [all …]
|
D | ec2_oct.c | 34 EC_POINT *point, in ec_GF2m_simple_set_compressed_coordinates() 113 size_t ec_GF2m_simple_point2oct(const EC_GROUP *group, const EC_POINT *point, in ec_GF2m_simple_point2oct() 235 int ec_GF2m_simple_oct2point(const EC_GROUP *group, EC_POINT *point, in ec_GF2m_simple_oct2point()
|
D | ec_key.c | 205 EC_POINT *pub_key = NULL; in ec_key_simple_generate_key() 276 EC_POINT *point = NULL; in ec_key_simple_check_key() 343 EC_POINT *point = NULL; in EC_KEY_set_public_key_affine_coordinates() 502 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key) in EC_KEY_get0_public_key() 507 int EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub_key) in EC_KEY_set_public_key()
|
D | ecp_oct.c | 17 EC_POINT *point, in ec_GFp_simple_set_compressed_coordinates() 154 size_t ec_GFp_simple_point2oct(const EC_GROUP *group, const EC_POINT *point, in ec_GFp_simple_point2oct() 269 int ec_GFp_simple_oct2point(const EC_GROUP *group, EC_POINT *point, in ec_GFp_simple_oct2point()
|
D | ecdsa_ossl.c | 40 EC_POINT *tmp_point = NULL; in ecdsa_sign_setup() 324 EC_POINT *point = NULL; in ossl_ecdsa_verify_sig() 326 const EC_POINT *pub_key; in ossl_ecdsa_verify_sig()
|
D | ec_check.c | 18 EC_POINT *point = NULL; in EC_GROUP_check()
|
/third_party/openssl/include/openssl/ |
D | ec.h | 46 typedef struct ec_point_st EC_POINT; typedef 153 int EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator, 160 const EC_POINT *EC_GROUP_get0_generator(const EC_GROUP *group); 428 EC_POINT *EC_POINT_new(const EC_GROUP *group); 433 void EC_POINT_free(EC_POINT *point); 438 void EC_POINT_clear_free(EC_POINT *point); 445 int EC_POINT_copy(EC_POINT *dst, const EC_POINT *src); 453 EC_POINT *EC_POINT_dup(const EC_POINT *src, const EC_GROUP *group); 459 const EC_METHOD *EC_POINT_method_of(const EC_POINT *point); 466 int EC_POINT_set_to_infinity(const EC_GROUP *group, EC_POINT *point); [all …]
|
/third_party/openssl/doc/man3/ |
D | EC_POINT_new.pod | 30 - Functions for creating, destroying and manipulating EC_POINT objects 36 EC_POINT *EC_POINT_new(const EC_GROUP *group); 37 void EC_POINT_free(EC_POINT *point); 38 void EC_POINT_clear_free(EC_POINT *point); 39 int EC_POINT_copy(EC_POINT *dst, const EC_POINT *src); 40 EC_POINT *EC_POINT_dup(const EC_POINT *src, const EC_GROUP *group); 41 const EC_METHOD *EC_POINT_method_of(const EC_POINT *point); 42 int EC_POINT_set_to_infinity(const EC_GROUP *group, EC_POINT *point); 44 EC_POINT *p, 48 const EC_POINT *p, [all …]
|
D | EC_POINT_add.pod | 5 …ve_precompute_mult - Functions for performing mathematical operations and tests on EC_POINT objects 11 int EC_POINT_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, 12 const EC_POINT *b, BN_CTX *ctx); 13 int EC_POINT_dbl(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, BN_CTX *ctx); 14 int EC_POINT_invert(const EC_GROUP *group, EC_POINT *a, BN_CTX *ctx); 15 int EC_POINT_is_at_infinity(const EC_GROUP *group, const EC_POINT *p); 16 int EC_POINT_is_on_curve(const EC_GROUP *group, const EC_POINT *point, BN_CTX *ctx); 17 int EC_POINT_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT *b, BN_CTX *ctx); 18 int EC_POINT_make_affine(const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx); 20 EC_POINT *points[], BN_CTX *ctx); [all …]
|
D | EC_KEY_new.pod | 37 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); 38 int EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub); 90 an EC_POINT on the curve calculated by multiplying the generator for the 97 on its affine co-ordinates; i.e., it constructs an EC_POINT object based on 99 EC_POINT. It also performs certain sanity checks on the key to confirm 105 and the EC_POINT public key for the B<key> respectively. 132 EC_POINT in B<eckey>.
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/ |
D | crypto_openssl.c | 1782 EC_POINT_clear_free((EC_POINT *) p); in crypto_ec_point_deinit() 1784 EC_POINT_free((EC_POINT *) p); in crypto_ec_point_deinit() 1792 (const EC_POINT *) p, in crypto_ec_point_x() 1812 EC_POINT_get_affine_coordinates_GFp(e->group, (EC_POINT *) point, in crypto_ec_point_to_bin() 1835 EC_POINT *elem; in crypto_ec_point_from_bin() 1870 return EC_POINT_add(e->group, (EC_POINT *) c, (const EC_POINT *) a, in crypto_ec_point_add() 1871 (const EC_POINT *) b, e->bnctx) ? 0 : -1; in crypto_ec_point_add() 1881 return EC_POINT_mul(e->group, (EC_POINT *) res, NULL, in crypto_ec_point_mul() 1882 (const EC_POINT *) p, (const BIGNUM *) b, e->bnctx) in crypto_ec_point_mul() 1891 return EC_POINT_invert(e->group, (EC_POINT *) p, e->bnctx) ? 0 : -1; in crypto_ec_point_invert() [all …]
|
/third_party/openssl/test/ |
D | ecstresstest.c | 42 static BIGNUM *walk_curve(const EC_GROUP *group, EC_POINT *point, int64_t num) in walk_curve() 69 EC_POINT *point = NULL; in test_curve()
|
D | ectest.c | 33 EC_POINT *P = NULL, *Q = NULL, *R = NULL, *S = NULL; in group_order_tests() 34 const EC_POINT *G = NULL; in group_order_tests() 67 const EC_POINT *points[6]; in group_order_tests() 152 EC_POINT *P = NULL, *Q = NULL, *R = NULL; in prime_field_tests() 154 const EC_POINT *points[4]; in prime_field_tests() 813 EC_POINT *P = NULL, *Q = NULL, *R = NULL; in char2_curve_test() 814 const EC_POINT *points[3]; in char2_curve_test() 967 EC_POINT *P = NULL, *Q = NULL, *R = NULL; in char2_field_tests() 1132 EC_POINT *point = NULL; in hybrid_point_encoding_test() 1324 EC_POINT *G = NULL, *P = NULL, *Q = NULL, *Q_CHECK = NULL; in nistp_single_test() [all …]
|
D | sm2_internal_test.c | 92 EC_POINT *generator = NULL; in create_EC_group() 147 EC_POINT *pt = NULL; in test_sm2_crypt() 314 EC_POINT *pt = NULL; in test_sm2_sign()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/ |
D | crypto_openssl.c | 1862 EC_POINT_clear_free((EC_POINT *) p); in crypto_ec_point_deinit() 1864 EC_POINT_free((EC_POINT *) p); in crypto_ec_point_deinit() 1872 (const EC_POINT *) p, in crypto_ec_point_x() 1892 EC_POINT_get_affine_coordinates_GFp(e->group, (EC_POINT *) point, in crypto_ec_point_to_bin() 1915 EC_POINT *elem; in crypto_ec_point_from_bin() 1950 return EC_POINT_add(e->group, (EC_POINT *) c, (const EC_POINT *) a, in crypto_ec_point_add() 1951 (const EC_POINT *) b, e->bnctx) ? 0 : -1; in crypto_ec_point_add() 1961 return EC_POINT_mul(e->group, (EC_POINT *) res, NULL, in crypto_ec_point_mul() 1962 (const EC_POINT *) p, (const BIGNUM *) b, e->bnctx) in crypto_ec_point_mul() 1971 return EC_POINT_invert(e->group, (EC_POINT *) p, e->bnctx) ? 0 : -1; in crypto_ec_point_invert() [all …]
|
/third_party/openssl/crypto/sm2/ |
D | sm2_crypt.c | 118 const EC_POINT *P = EC_KEY_get0_public_key(key); in sm2_encrypt() 119 EC_POINT *kG = NULL; in sm2_encrypt() 120 EC_POINT *kP = NULL; in sm2_encrypt() 263 EC_POINT *C1 = NULL; in sm2_decrypt()
|