Home
last modified time | relevance | path

Searched refs:EC_POINT (Results 1 – 25 of 46) sorted by relevance

12

/freebsd-12-stable/crypto/openssl/crypto/ec/
Dec_local.h66 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 …]
Dec_print.c15 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()
Dec_lib.c330 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 …]
Dec2_smpl.c213 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 …]
Dec_mult.c37 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 …]
Dec_oct.c18 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()
Decp_smpl.c315 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 …]
Decdh_ossl.c23 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()
Dec_kmeth.c127 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()
Decp_nistz256.c613 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()
994 EC_POINT *pre_comp_generator = EC_POINT_new(group); in ecp_nistz256_points_mul()
[all …]
Dec2_oct.c34 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()
Dec_key.c205 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()
512 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key) in EC_KEY_get0_public_key()
517 int EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub_key) in EC_KEY_set_public_key()
Decp_oct.c17 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()
Decdsa_ossl.c40 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-12-stable/crypto/openssl/include/openssl/
Dec.h46 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 …]
/freebsd-12-stable/crypto/openssl/doc/man3/
DEC_POINT_new.pod30 - 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 …]
DEC_POINT_add.pod5 …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 …]
DEC_KEY_new.pod37 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. The function
134 EC_POINT in B<eckey>.
/freebsd-12-stable/crypto/openssh/
Dpacket.h28 # define EC_POINT void macro
34 # define EC_POINT void macro
194 int sshpkt_put_ec(struct ssh *ssh, const EC_POINT *v, const EC_GROUP *g);
206 int sshpkt_get_ec(struct ssh *ssh, EC_POINT *v, const EC_GROUP *g);
216 # undef EC_POINT
220 # undef EC_POINT
Dsshbuf-getput-crypto.c60 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()
Dsshkey.h40 # define EC_POINT void macro
49 # define EC_POINT void macro
228 int sshkey_ec_validate_public(const EC_GROUP *, const EC_POINT *);
256 void sshkey_dump_ec_point(const EC_GROUP *, const EC_POINT *);
332 # undef EC_POINT
336 # undef EC_POINT
Dkexecdh.c54 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()
Dkex.h41 # define EC_POINT void macro
48 # define EC_POINT void macro
263 # undef EC_POINT
/freebsd-12-stable/contrib/wpa/src/crypto/
Dcrypto_openssl.c1841 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()
1871 EC_POINT_get_affine_coordinates_GFp(e->group, (EC_POINT *) point, in crypto_ec_point_to_bin()
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()
1940 return EC_POINT_mul(e->group, (EC_POINT *) res, NULL, in crypto_ec_point_mul()
1941 (const EC_POINT *) p, (const BIGNUM *) b, e->bnctx) in crypto_ec_point_mul()
1950 return EC_POINT_invert(e->group, (EC_POINT *) p, e->bnctx) ? 0 : -1; in crypto_ec_point_invert()
[all …]
/freebsd-12-stable/crypto/openssl/crypto/sm2/
Dsm2_crypt.c118 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()

12