Home
last modified time | relevance | path

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

12

/freebsd-12.1/crypto/openssl/crypto/ec/
H A Dec_lcl.h69 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,
359 int ec_GFp_simple_point_copy(EC_POINT *, const EC_POINT *);
404 EC_POINT *r, EC_POINT *s,
407 EC_POINT *r, EC_POINT *s,
410 EC_POINT *r, EC_POINT *s,
456 int ec_GF2m_simple_point_copy(EC_POINT *, const EC_POINT *);
[all …]
H A 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()
H A Dec_lib.c649 EC_POINT *EC_POINT_new(const EC_GROUP *group) in EC_POINT_new()
651 EC_POINT *ret; in EC_POINT_new()
679 void EC_POINT_free(EC_POINT *point) in EC_POINT_free()
689 void EC_POINT_clear_free(EC_POINT *point) in EC_POINT_clear_free()
701 int EC_POINT_copy(EC_POINT *dest, const EC_POINT *src) in EC_POINT_copy()
719 EC_POINT *EC_POINT_dup(const EC_POINT *a, const EC_GROUP *group) in EC_POINT_dup()
721 EC_POINT *t; in EC_POINT_dup()
874 int EC_POINT_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, in EC_POINT_add()
889 int EC_POINT_dbl(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, in EC_POINT_dbl()
951 int EC_POINT_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT *b, in EC_POINT_cmp()
[all …]
H A 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()
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 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()
H A Dec_mult.c94 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()
414 const EC_POINT *generator = NULL; in ec_wNAF_mul()
415 EC_POINT *tmp = NULL; in ec_wNAF_mul()
428 EC_POINT **val = NULL; /* precomputation */ in ec_wNAF_mul()
429 EC_POINT **v; in ec_wNAF_mul()
597 EC_POINT **tmp_points; in ec_wNAF_mul()
816 const EC_POINT *generator; in ec_wNAF_precompute_mult()
821 EC_POINT **points = NULL; in ec_wNAF_precompute_mult()
[all …]
H A 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()
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()
1484 EC_POINT *r, EC_POINT *s, in ec_GFp_simple_ladder_pre()
1535 EC_POINT *r, EC_POINT *s, in ec_GFp_simple_ladder_step()
[all …]
H A 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()
H A 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()
H A Decp_nistz256.c582 const EC_POINT **point, in ecp_nistz256_windowed_mul()
768 static int ecp_nistz256_is_affine_G(const EC_POINT *generator) in ecp_nistz256_is_affine_G()
786 EC_POINT *P = NULL, *T = NULL; in ecp_nistz256_mult_precompute()
787 const EC_POINT *generator; in ecp_nistz256_mult_precompute()
1118 EC_POINT *r, in ecp_nistz256_points_mul()
1128 const EC_POINT *generator = NULL; in ecp_nistz256_points_mul()
1130 const EC_POINT **new_points = NULL; in ecp_nistz256_points_mul()
1163 EC_POINT *pre_comp_generator = EC_POINT_new(group); in ecp_nistz256_points_mul()
1310 memcpy(new_points, points, num * sizeof(EC_POINT *)); in ecp_nistz256_points_mul()
1348 const EC_POINT *point, in ecp_nistz256_get_affine()
[all …]
H A 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()
H A Dec_key.c204 EC_POINT *pub_key = NULL; in ec_key_simple_generate_key()
275 EC_POINT *point = NULL; in ec_key_simple_check_key()
342 EC_POINT *point = NULL; in EC_KEY_set_public_key_affine_coordinates()
432 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key) in EC_KEY_get0_public_key()
437 int EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub_key) in EC_KEY_set_public_key()
H A 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()
/freebsd-12.1/crypto/openssl/include/openssl/
H A Dec.h46 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-12.1/crypto/openssl/doc/man3/
H A DEC_POINT_new.pod36 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);
44 EC_POINT *p,
66 EC_POINT *p,
91 EC_POINT *p, BN_CTX *ctx);
95 EC_POINT *p, BN_CTX *ctx);
[all …]
H A DEC_POINT_add.pod11 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 DEC_KEY_new.pod36 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key);
37 int EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub);
88 an EC_POINT on the curve calculated by multiplying the generator for the
95 on its affine co-ordinates; i.e., it constructs an EC_POINT object based on
97 EC_POINT. It also performs certain sanity checks on the key to confirm
103 and the EC_POINT public key for the B<key> respectively.
126 EC_POINT in B<eckey>.
/freebsd-12.1/crypto/openssh/
H A Dpacket.h28 # define EC_POINT void macro
34 # define EC_POINT void macro
190 int sshpkt_put_ec(struct ssh *ssh, const EC_POINT *v, const EC_GROUP *g);
201 int sshpkt_get_ec(struct ssh *ssh, EC_POINT *v, const EC_GROUP *g);
215 # undef EC_POINT
219 # undef EC_POINT
H A Dkex.h41 # define EC_POINT void macro
48 # define EC_POINT void macro
214 const EC_POINT *, const EC_POINT *, const BIGNUM *, u_char *, size_t *);
236 # undef EC_POINT
H A Dsshkey.h39 # define EC_POINT void macro
47 # define EC_POINT void macro
174 int sshkey_ec_validate_public(const EC_GROUP *, const EC_POINT *);
201 void sshkey_dump_ec_point(const EC_GROUP *, const EC_POINT *);
269 # undef EC_POINT
273 # undef EC_POINT
H A Dsshbuf-getput-crypto.c76 get_ec(const u_char *d, size_t len, EC_POINT *v, const EC_GROUP *g) in get_ec()
90 sshbuf_get_ec(struct sshbuf *buf, EC_POINT *v, const EC_GROUP *g) in sshbuf_get_ec()
113 EC_POINT *pt = EC_POINT_new(EC_KEY_get0_group(v)); in sshbuf_get_eckey()
192 sshbuf_put_ec(struct sshbuf *buf, const EC_POINT *v, const EC_GROUP *g) in sshbuf_put_ec()
H A Dkexecdh.c58 const EC_POINT *client_dh_pub, in kex_ecdh_hash()
59 const EC_POINT *server_dh_pub, in kex_ecdh_hash()
H A Dkexecdhs.c64 EC_POINT *client_public; in input_kex_ecdh_init()
67 const EC_POINT *public_key; in input_kex_ecdh_init()
/freebsd-12.1/contrib/wpa/src/crypto/
H A Dcrypto_openssl.c1688 EC_POINT_clear_free((EC_POINT *) p); in crypto_ec_point_deinit()
1690 EC_POINT_free((EC_POINT *) p); in crypto_ec_point_deinit()
1698 (const EC_POINT *) p, in crypto_ec_point_x()
1741 EC_POINT *elem; in crypto_ec_point_from_bin()
1776 return EC_POINT_add(e->group, (EC_POINT *) c, (const EC_POINT *) a, in crypto_ec_point_add()
1777 (const EC_POINT *) b, e->bnctx) ? 0 : -1; in crypto_ec_point_add()
1787 return EC_POINT_mul(e->group, (EC_POINT *) res, NULL, in crypto_ec_point_mul()
1865 return EC_POINT_cmp(e->group, (const EC_POINT *) a, in crypto_ec_point_cmp()
1866 (const EC_POINT *) b, e->bnctx); in crypto_ec_point_cmp()
1938 const EC_POINT *pubkey; in crypto_ecdh_get_pubkey()
[all …]
/freebsd-12.1/crypto/openssl/crypto/sm2/
H A Dsm2_crypt.c127 const EC_POINT *P = EC_KEY_get0_public_key(key); in sm2_encrypt()
128 EC_POINT *kG = NULL; in sm2_encrypt()
129 EC_POINT *kP = NULL; in sm2_encrypt()
272 EC_POINT *C1 = NULL; in sm2_decrypt()

12