/freebsd/crypto/openssl/crypto/ec/ |
H A D | ec_local.h | 70 int (*point_init) (EC_POINT *); 71 void (*point_finish) (EC_POINT *); 72 void (*point_clear_finish) (EC_POINT *); 73 int (*point_copy) (EC_POINT *, const EC_POINT *); 82 int (*point_set_to_infinity) (const EC_GROUP *, EC_POINT *); 83 int (*point_set_affine_coordinates) (const EC_GROUP *, EC_POINT *, 86 int (*point_get_affine_coordinates) (const EC_GROUP *, const EC_POINT *, 88 int (*point_set_compressed_coordinates) (const EC_GROUP *, EC_POINT *, 92 size_t (*point2oct) (const EC_GROUP *, const EC_POINT *, 95 int (*oct2point) (const EC_GROUP *, EC_POINT *, const unsigned char *buf, [all …]
|
H A D | ec2_smpl.c | 222 int ossl_ec_GF2m_simple_point_init(EC_POINT *point) in ossl_ec_GF2m_simple_point_init() 238 void ossl_ec_GF2m_simple_point_finish(EC_POINT *point) in ossl_ec_GF2m_simple_point_finish() 246 void ossl_ec_GF2m_simple_point_clear_finish(EC_POINT *point) in ossl_ec_GF2m_simple_point_clear_finish() 258 int ossl_ec_GF2m_simple_point_copy(EC_POINT *dest, const EC_POINT *src) in ossl_ec_GF2m_simple_point_copy() 277 EC_POINT *point) in ossl_ec_GF2m_simple_point_set_to_infinity() 289 EC_POINT *point, in ossl_ec_GF2m_simple_point_set_affine_coordinates() 321 const EC_POINT *point, in ossl_ec_GF2m_simple_point_get_affine_coordinates() 356 int ossl_ec_GF2m_simple_add(const EC_GROUP *group, EC_POINT *r, in ossl_ec_GF2m_simple_add() 357 const EC_POINT *a, const EC_POINT *b, BN_CTX *ctx) in ossl_ec_GF2m_simple_add() 477 int ossl_ec_GF2m_simple_dbl(const EC_GROUP *group, EC_POINT *r, in ossl_ec_GF2m_simple_dbl() [all …]
|
H A D | ec_lib.c | 364 int EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator, in EC_GROUP_set_generator() 434 const EC_POINT *EC_GROUP_get0_generator(const EC_GROUP *group) in EC_GROUP_get0_generator() 716 EC_POINT *EC_POINT_new(const EC_GROUP *group) in EC_POINT_new() 718 EC_POINT *ret; in EC_POINT_new() 746 void EC_POINT_free(EC_POINT *point) in EC_POINT_free() 756 void EC_POINT_clear_free(EC_POINT *point) in EC_POINT_clear_free() 768 int EC_POINT_copy(EC_POINT *dest, const EC_POINT *src) in EC_POINT_copy() 786 EC_POINT *EC_POINT_dup(const EC_POINT *a, const EC_GROUP *group) in EC_POINT_dup() 788 EC_POINT *t; in EC_POINT_dup() 806 const EC_METHOD *EC_POINT_method_of(const EC_POINT *point) in EC_POINT_method_of() [all …]
|
H A D | ec_oct.c | 24 int EC_POINT_set_compressed_coordinates(const EC_GROUP *group, EC_POINT *point, in EC_POINT_set_compressed_coordinates() 57 EC_POINT *point, const BIGNUM *x, in EC_POINT_set_compressed_coordinates_GFp() 65 EC_POINT *point, const BIGNUM *x, in EC_POINT_set_compressed_coordinates_GF2m() 73 size_t EC_POINT_point2oct(const EC_GROUP *group, const EC_POINT *point, in EC_POINT_point2oct() 109 int EC_POINT_oct2point(const EC_GROUP *group, EC_POINT *point, in EC_POINT_oct2point() 137 size_t EC_POINT_point2buf(const EC_GROUP *group, const EC_POINT *point, in EC_POINT_point2buf()
|
H A D | ec_mult.c | 43 EC_POINT **points; /* array with pre-calculated multiples of 100 EC_POINT **pts; in EC_ec_pre_comp_free() 145 int ossl_ec_scalar_mul_ladder(const EC_GROUP *group, EC_POINT *r, in ossl_ec_scalar_mul_ladder() 146 const BIGNUM *scalar, const EC_POINT *point, in ossl_ec_scalar_mul_ladder() 150 EC_POINT *p = NULL; in ossl_ec_scalar_mul_ladder() 151 EC_POINT *s = NULL; in ossl_ec_scalar_mul_ladder() 410 int ossl_ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, in ossl_ec_wNAF_mul() 411 size_t num, const EC_POINT *points[], in ossl_ec_wNAF_mul() 414 const EC_POINT *generator = NULL; in ossl_ec_wNAF_mul() 415 EC_POINT *tmp = NULL; in ossl_ec_wNAF_mul() [all …]
|
H A D | ec_deprecated.c | 22 const EC_POINT *point, in EC_POINT_point2bn() 41 EC_POINT *EC_POINT_bn2point(const EC_GROUP *group, in EC_POINT_bn2point() 42 const BIGNUM *bn, EC_POINT *point, BN_CTX *ctx) in EC_POINT_bn2point() 46 EC_POINT *ret; in EC_POINT_bn2point()
|
H A D | ec_print.c | 18 const EC_POINT *point, in EC_POINT_point2hex() 49 EC_POINT *EC_POINT_hex2point(const EC_GROUP *group, in EC_POINT_hex2point() 50 const char *hex, EC_POINT *point, BN_CTX *ctx) in EC_POINT_hex2point() 55 EC_POINT *pt = NULL; in EC_POINT_hex2point()
|
H A D | ecp_smpl.c | 322 int ossl_ec_GFp_simple_point_init(EC_POINT *point) in ossl_ec_GFp_simple_point_init() 338 void ossl_ec_GFp_simple_point_finish(EC_POINT *point) in ossl_ec_GFp_simple_point_finish() 345 void ossl_ec_GFp_simple_point_clear_finish(EC_POINT *point) in ossl_ec_GFp_simple_point_clear_finish() 353 int ossl_ec_GFp_simple_point_copy(EC_POINT *dest, const EC_POINT *src) in ossl_ec_GFp_simple_point_copy() 368 EC_POINT *point) in ossl_ec_GFp_simple_point_set_to_infinity() 376 EC_POINT *point, in ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp() 436 const EC_POINT *point, in ossl_ec_GFp_simple_get_Jprojective_coordinates_GFp() 485 EC_POINT *point, in ossl_ec_GFp_simple_point_set_affine_coordinates() 502 const EC_POINT *point, in ossl_ec_GFp_simple_point_get_affine_coordinates() 613 int ossl_ec_GFp_simple_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, in ossl_ec_GFp_simple_add() [all …]
|
H A D | ecdh_ossl.c | 29 const EC_POINT *pub_key, const EC_KEY *ecdh) in ossl_ecdh_compute_key() 50 const EC_POINT *pub_key, const EC_KEY *ecdh) in ossl_ecdh_simple_compute_key() 53 EC_POINT *tmp = NULL; in ossl_ecdh_simple_compute_key()
|
H A D | ecp_s390x_nistp.c | 47 static int ec_GFp_s390x_nistp_mul(const EC_GROUP *group, EC_POINT *r, in ec_GFp_s390x_nistp_mul() 49 size_t num, const EC_POINT *points[], in ec_GFp_s390x_nistp_mul() 55 const EC_POINT *point_ptr = NULL; in ec_GFp_s390x_nistp_mul() 233 const EC_POINT *pubkey; in ecdsa_s390x_nistp_verify_sig() 287 EC_POINT *r, \ 290 const EC_POINT *points[], \
|
H A D | ec_kmeth.c | 154 int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, in ECDH_compute_key() 208 const EC_POINT *pub_key)) in EC_KEY_METHOD_set_init() 227 const EC_POINT *pub_key, in EC_KEY_METHOD_set_compute_key() 275 const EC_POINT *pub_key)) in EC_KEY_METHOD_get_init() 301 const EC_POINT *pub_key, in EC_KEY_METHOD_get_compute_key()
|
H A D | ecp_nistz256.c | 619 const EC_POINT **point, in ecp_nistz256_windowed_mul() 804 static int ecp_nistz256_is_affine_G(const EC_POINT *generator) in ecp_nistz256_is_affine_G() 822 EC_POINT *P = NULL, *T = NULL; in ecp_nistz256_mult_precompute() 823 const EC_POINT *generator; in ecp_nistz256_mult_precompute() 937 __owur static int ecp_nistz256_set_from_affine(EC_POINT *out, const EC_GROUP *group, in ecp_nistz256_set_from_affine() 953 EC_POINT *r, in ecp_nistz256_points_mul() 956 const EC_POINT *points[], in ecp_nistz256_points_mul() 963 const EC_POINT *generator = NULL; in ecp_nistz256_points_mul() 965 const EC_POINT **new_points = NULL; in ecp_nistz256_points_mul() 999 EC_POINT *pre_comp_generator = EC_POINT_new(group); in ecp_nistz256_points_mul() [all …]
|
H A D | ec2_oct.c | 40 EC_POINT *point, in ossl_ec_GF2m_simple_set_compressed_coordinates() 126 const EC_POINT *point, in ossl_ec_GF2m_simple_point2oct() 256 int ossl_ec_GF2m_simple_oct2point(const EC_GROUP *group, EC_POINT *point, in ossl_ec_GF2m_simple_oct2point()
|
/freebsd/crypto/openssl/include/openssl/ |
H A D | ec.h | 108 typedef struct ec_point_st EC_POINT; typedef 218 int EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator, 225 const EC_POINT *EC_GROUP_get0_generator(const EC_GROUP *group); 544 EC_POINT *EC_POINT_new(const EC_GROUP *group); 549 void EC_POINT_free(EC_POINT *point); 554 void EC_POINT_clear_free(EC_POINT *point); 561 int EC_POINT_copy(EC_POINT *dst, const EC_POINT *src); 569 EC_POINT *EC_POINT_dup(const EC_POINT *src, const EC_GROUP *group); 576 int EC_POINT_set_to_infinity(const EC_GROUP *group, EC_POINT *point); 583 OSSL_DEPRECATEDIN_3_0 const EC_METHOD *EC_POINT_method_of(const EC_POINT *point); [all …]
|
/freebsd/crypto/openssl/doc/man3/ |
H A 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 int EC_POINT_set_to_infinity(const EC_GROUP *group, EC_POINT *point); 42 int EC_POINT_set_affine_coordinates(const EC_GROUP *group, EC_POINT *p, 45 int EC_POINT_get_affine_coordinates(const EC_GROUP *group, const EC_POINT *p, 47 int EC_POINT_set_compressed_coordinates(const EC_GROUP *group, EC_POINT *p, [all …]
|
H A 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_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *n, 19 const EC_POINT *q, const BIGNUM *m, BN_CTX *ctx); [all …]
|
H A D | EC_KEY_new.pod | 47 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); 48 int EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub); 124 an EC_POINT on the curve calculated by multiplying the generator for the 131 on its affine coordinates; i.e., it constructs an EC_POINT object based on 133 EC_POINT. It also performs certain sanity checks on the key to confirm 139 and the EC_POINT public key for the B<key> respectively. The function 170 EC_POINT in I<eckey>.
|
/freebsd/crypto/openssh/ |
H A D | packet.h | 29 # define EC_POINT void macro 35 # define EC_POINT void macro 195 int sshpkt_put_ec(struct ssh *ssh, const EC_POINT *v, const EC_GROUP *g); 208 int sshpkt_get_ec(struct ssh *ssh, EC_POINT *v, const EC_GROUP *g); 218 # undef EC_POINT 223 # undef EC_POINT
|
H A D | sshkey.h | 41 # define EC_POINT void macro 50 # define EC_POINT void macro 266 int sshkey_ec_validate_public(const EC_GROUP *, const EC_POINT *); 300 void sshkey_dump_ec_point(const EC_GROUP *, const EC_POINT *); 357 # undef EC_POINT 362 # 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 | 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 286 # undef EC_POINT
|
/freebsd/crypto/openssl/test/ |
H A D | ecstresstest.c | 42 static BIGNUM *walk_curve(const EC_GROUP *group, EC_POINT *point, in walk_curve() 70 EC_POINT *point = NULL; in test_curve()
|
H A D | ectest.c | 42 EC_POINT *P = NULL, *Q = NULL, *R = NULL, *S = NULL; in group_order_tests() 43 const EC_POINT *G = NULL; in group_order_tests() 79 const EC_POINT *points[6]; in group_order_tests() 164 EC_POINT *P = NULL, *Q = NULL, *R = NULL; in prime_field_tests() 167 const EC_POINT *points[4]; in prime_field_tests() 786 EC_POINT *P = NULL, *Q = NULL, *R = NULL; in char2_curve_test() 788 const EC_POINT *points[3]; in char2_curve_test() 939 EC_POINT *P = NULL, *Q = NULL, *R = NULL; in char2_field_tests() 1091 EC_POINT *point = NULL; in hybrid_point_encoding_test() 1319 EC_POINT *G = NULL, *P = NULL, *Q = NULL, *Q_CHECK = NULL; in nistp_single_test() [all …]
|
/freebsd/crypto/openssl/crypto/sm2/ |
H A D | sm2_crypt.c | 137 const EC_POINT *P = EC_KEY_get0_public_key(key); in ossl_sm2_encrypt() 138 EC_POINT *kG = NULL; in ossl_sm2_encrypt() 139 EC_POINT *kP = NULL; in ossl_sm2_encrypt() 297 EC_POINT *C1 = NULL; in ossl_sm2_decrypt()
|