Home
last modified time | relevance | path

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

123

/freebsd-14.2/crypto/openssl/crypto/ec/
H A Dec_local.h73 int (*point_copy) (EC_POINT *, const EC_POINT *);
98 int (*add) (const EC_GROUP *, EC_POINT *r, const EC_POINT *a,
191 EC_POINT *r, EC_POINT *s,
194 EC_POINT *r, EC_POINT *s,
197 EC_POINT *r, EC_POINT *s,
373 int ossl_ec_GFp_simple_point_copy(EC_POINT *, const EC_POINT *);
421 EC_POINT *r, EC_POINT *s,
424 EC_POINT *r, EC_POINT *s,
427 EC_POINT *r, EC_POINT *s,
474 int ossl_ec_GF2m_simple_point_copy(EC_POINT *, const EC_POINT *);
[all …]
H A Dec2_smpl.c222 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()
258 int ossl_ec_GF2m_simple_point_copy(EC_POINT *dest, const EC_POINT *src) in ossl_ec_GF2m_simple_point_copy()
357 const EC_POINT *a, const EC_POINT *b, BN_CTX *ctx) in ossl_ec_GF2m_simple_add()
723 EC_POINT *r, EC_POINT *s, in ec_GF2m_simple_ladder_pre()
724 EC_POINT *p, BN_CTX *ctx) in ec_GF2m_simple_ladder_pre()
776 EC_POINT *r, EC_POINT *s, in ec_GF2m_simple_ladder_step()
777 EC_POINT *p, BN_CTX *ctx) in ec_GF2m_simple_ladder_step()
806 EC_POINT *r, EC_POINT *s, in ec_GF2m_simple_ladder_post()
870 const EC_POINT *points[], in ec_GF2m_simple_points_mul()
[all …]
H A Dec_lib.c716 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()
938 int EC_POINT_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, in EC_POINT_add()
953 int EC_POINT_dbl(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, in EC_POINT_dbl()
1014 int EC_POINT_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT *b, in EC_POINT_cmp()
[all …]
H A Dec_oct.c24 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 Dec_deprecated.c22 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 Dec_mult.c100 EC_POINT **pts; in EC_ec_pre_comp_free()
150 EC_POINT *p = NULL; in ossl_ec_scalar_mul_ladder()
151 EC_POINT *s = NULL; in ossl_ec_scalar_mul_ladder()
414 const EC_POINT *generator = NULL; in ossl_ec_wNAF_mul()
415 EC_POINT *tmp = NULL; in ossl_ec_wNAF_mul()
428 EC_POINT **val = NULL; /* precomputation */ in ossl_ec_wNAF_mul()
429 EC_POINT **v; in ossl_ec_wNAF_mul()
598 EC_POINT **tmp_points; in ossl_ec_wNAF_mul()
832 const EC_POINT *generator; in ossl_ec_wNAF_precompute_mult()
836 EC_POINT **points = NULL; in ossl_ec_wNAF_precompute_mult()
[all …]
H A Dec_print.c18 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 Decp_smpl.c322 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()
613 int ossl_ec_GFp_simple_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, in ossl_ec_GFp_simple_add()
614 const EC_POINT *b, BN_CTX *ctx) in ossl_ec_GFp_simple_add()
798 int ossl_ec_GFp_simple_dbl(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, in ossl_ec_GFp_simple_dbl()
1323 EC_POINT *p = points[i]; in ossl_ec_GFp_simple_points_make_affine()
1494 EC_POINT *r, EC_POINT *s, in ossl_ec_GFp_simple_ladder_pre()
1564 EC_POINT *r, EC_POINT *s, in ossl_ec_GFp_simple_ladder_step()
[all …]
H A Decdh_ossl.c29 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 Decp_s390x_nistp.c47 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 Dec_kmeth.c154 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 Decp_nistz256.c619 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()
953 EC_POINT *r, 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()
1139 memcpy(new_points, points, num * sizeof(EC_POINT *)); in ecp_nistz256_points_mul()
1177 const EC_POINT *point, in ecp_nistz256_get_affine()
[all …]
H A Dec2_oct.c40 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-14.2/crypto/openssl/include/openssl/
H A Dec.h108 typedef struct ec_point_st EC_POINT; typedef
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);
796 int EC_POINT_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a,
797 const EC_POINT *b, BN_CTX *ctx);
806 int EC_POINT_dbl(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a,
840 int EC_POINT_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT *b,
[all …]
/freebsd-14.2/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);
61 EC_POINT *p, BN_CTX *ctx);
69 EC_POINT *p,
83 EC_POINT *p,
100 EC_POINT *p, BN_CTX *ctx);
118 B<src> to the newly created B<EC_POINT> object.
[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_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *n,
19 const EC_POINT *q, const BIGNUM *m, BN_CTX *ctx);
25 int EC_POINT_make_affine(const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx);
27 EC_POINT *points[], BN_CTX *ctx);
[all …]
H A DEC_KEY_new.pod47 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-14.2/crypto/openssh/
H A 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
H A 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()
H A Dsshkey.h40 # define EC_POINT void macro
49 # define EC_POINT void macro
263 int sshkey_ec_validate_public(const EC_GROUP *, const EC_POINT *);
291 void sshkey_dump_ec_point(const EC_GROUP *, const EC_POINT *);
344 # undef EC_POINT
348 # undef EC_POINT
H A 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()
H A Dkex.h41 # define EC_POINT void macro
48 # define EC_POINT void macro
273 # undef EC_POINT
/freebsd-14.2/crypto/openssl/test/
H A Decstresstest.c42 static BIGNUM *walk_curve(const EC_GROUP *group, EC_POINT *point, in walk_curve()
70 EC_POINT *point = NULL; in test_curve()
H A Dectest.c43 const EC_POINT *G = NULL; in group_order_tests()
79 const EC_POINT *points[6]; in group_order_tests()
167 const EC_POINT *points[4]; in prime_field_tests()
788 const EC_POINT *points[3]; in char2_curve_test()
1091 EC_POINT *point = NULL; in hybrid_point_encoding_test()
1503 EC_POINT *other_gen = NULL; in check_named_curve_test()
1826 EC_POINT *other_gen = NULL; in check_named_curve_from_ecparameters()
2159 EC_POINT *g2_gen = NULL; in cardinality_test()
2346 const EC_POINT *G = NULL; in ec_point_hex2point_test()
2347 EC_POINT *P = NULL; in ec_point_hex2point_test()
[all …]
/freebsd-14.2/crypto/openssl/crypto/sm2/
H A Dsm2_crypt.c137 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()

123