| /freebsd-13.1/crypto/openssl/crypto/ec/ |
| H A D | ec_local.h | 69 int (*point_copy) (EC_POINT *, const EC_POINT *); 102 int (*add) (const EC_GROUP *, EC_POINT *r, const EC_POINT *a, 187 EC_POINT *r, EC_POINT *s, 190 EC_POINT *r, EC_POINT *s, 193 EC_POINT *r, EC_POINT *s, 361 int ec_GFp_simple_point_copy(EC_POINT *, const EC_POINT *); 406 EC_POINT *r, EC_POINT *s, 409 EC_POINT *r, EC_POINT *s, 412 EC_POINT *r, EC_POINT *s, 458 int ec_GF2m_simple_point_copy(EC_POINT *, const EC_POINT *); [all …]
|
| H A 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()
|
| H A D | ec_lib.c | 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() 875 int EC_POINT_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, in EC_POINT_add() 890 int EC_POINT_dbl(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, in EC_POINT_dbl() 952 int EC_POINT_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT *b, in EC_POINT_cmp() [all …]
|
| H A 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() 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() 690 EC_POINT *r, EC_POINT *s, in ec_GF2m_simple_ladder_pre() 743 EC_POINT *r, EC_POINT *s, in ec_GF2m_simple_ladder_step() 773 EC_POINT *r, EC_POINT *s, in ec_GF2m_simple_ladder_post() [all …]
|
| H A 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()
|
| H A D | ec_mult.c | 94 EC_POINT **pts; in EC_ec_pre_comp_free() 144 EC_POINT *p = NULL; in ec_scalar_mul_ladder() 145 EC_POINT *s = NULL; in ec_scalar_mul_ladder() 407 const EC_POINT *generator = NULL; in ec_wNAF_mul() 408 EC_POINT *tmp = NULL; in ec_wNAF_mul() 421 EC_POINT **val = NULL; /* precomputation */ in ec_wNAF_mul() 422 EC_POINT **v; in ec_wNAF_mul() 590 EC_POINT **tmp_points; in ec_wNAF_mul() 823 const EC_POINT *generator; in ec_wNAF_precompute_mult() 828 EC_POINT **points = NULL; in ec_wNAF_precompute_mult() [all …]
|
| H A 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() 609 int ec_GFp_simple_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, in ec_GFp_simple_add() 610 const EC_POINT *b, BN_CTX *ctx) in ec_GFp_simple_add() 794 int ec_GFp_simple_dbl(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, in ec_GFp_simple_dbl() 1317 EC_POINT *p = points[i]; in ec_GFp_simple_points_make_affine() 1487 EC_POINT *r, EC_POINT *s, in ec_GFp_simple_ladder_pre() 1557 EC_POINT *r, EC_POINT *s, in ec_GFp_simple_ladder_step() [all …]
|
| H A 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()
|
| H A 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()
|
| H A 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() 948 EC_POINT *r, 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() 994 EC_POINT *pre_comp_generator = EC_POINT_new(group); in ecp_nistz256_points_mul() 1134 memcpy(new_points, points, num * sizeof(EC_POINT *)); in ecp_nistz256_points_mul() 1172 const EC_POINT *point, in ecp_nistz256_get_affine() [all …]
|
| H A 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()
|
| H A 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()
|
| H A 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()
|
| H A 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()
|
| /freebsd-13.1/crypto/openssl/include/openssl/ |
| H A D | ec.h | 46 typedef struct ec_point_st EC_POINT; typedef 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); 662 EC_POINT *, BN_CTX *); 680 int EC_POINT_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, 681 const EC_POINT *b, BN_CTX *ctx); 690 int EC_POINT_dbl(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, [all …]
|
| /freebsd-13.1/crypto/openssl/doc/man3/ |
| H A D | EC_POINT_new.pod | 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); 44 EC_POINT *p, 66 EC_POINT *p, 91 EC_POINT *p, BN_CTX *ctx); 95 EC_POINT *p, BN_CTX *ctx); 114 B<src> to the newly created B<EC_POINT> object. [all …]
|
| H A D | EC_POINT_add.pod | 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); 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); 22 const EC_POINT *p[], const BIGNUM *m[], BN_CTX *ctx); 23 int EC_POINT_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *n, [all …]
|
| H A 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>.
|
| /freebsd-13.1/crypto/openssh/ |
| H A D | packet.h | 28 # define EC_POINT void macro 34 # define EC_POINT void macro 193 int sshpkt_put_ec(struct ssh *ssh, const EC_POINT *v, const EC_GROUP *g); 205 int sshpkt_get_ec(struct ssh *ssh, EC_POINT *v, const EC_GROUP *g); 215 # undef EC_POINT 219 # undef EC_POINT
|
| H A D | sshbuf-getput-crypto.c | 60 get_ec(const u_char *d, size_t len, EC_POINT *v, const EC_GROUP *g) in get_ec() 74 sshbuf_get_ec(struct sshbuf *buf, EC_POINT *v, const EC_GROUP *g) in sshbuf_get_ec() 97 EC_POINT *pt = EC_POINT_new(EC_KEY_get0_group(v)); in sshbuf_get_eckey() 154 sshbuf_put_ec(struct sshbuf *buf, const EC_POINT *v, const EC_GROUP *g) in sshbuf_put_ec()
|
| H A D | sshkey.h | 40 # define EC_POINT void macro 49 # define EC_POINT void macro 224 int sshkey_ec_validate_public(const EC_GROUP *, const EC_POINT *); 252 void sshkey_dump_ec_point(const EC_GROUP *, const EC_POINT *); 327 # undef EC_POINT 331 # undef EC_POINT
|
| H A D | kexecdh.c | 54 const EC_POINT *public_key; in kex_ecdh_keypair() 96 const EC_POINT *pub_key; in kex_ecdh_enc() 143 EC_POINT *dh_pub = NULL; in kex_ecdh_dec_key_group()
|
| H A D | kex.h | 41 # define EC_POINT void macro 48 # define EC_POINT void macro 256 # undef EC_POINT
|
| /freebsd-13.1/contrib/wpa/src/crypto/ |
| H A D | crypto_openssl.c | 1841 EC_POINT_clear_free((EC_POINT *) p); in crypto_ec_point_deinit() 1843 EC_POINT_free((EC_POINT *) p); in crypto_ec_point_deinit() 1851 (const EC_POINT *) p, in crypto_ec_point_x() 1894 EC_POINT *elem; in crypto_ec_point_from_bin() 1929 return EC_POINT_add(e->group, (EC_POINT *) c, (const EC_POINT *) a, in crypto_ec_point_add() 1930 (const EC_POINT *) b, e->bnctx) ? 0 : -1; in crypto_ec_point_add() 1998 (const EC_POINT *) b, e->bnctx); in crypto_ec_point_cmp() 2125 const EC_POINT *pubkey; in crypto_ecdh_get_pubkey() 2189 EC_POINT *pub; in crypto_ecdh_set_peerkey() 2346 EC_POINT *point = NULL; in crypto_ec_key_set_pub() [all …]
|
| /freebsd-13.1/crypto/openssl/crypto/sm2/ |
| H A 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()
|