Home
last modified time | relevance | path

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

123

/freebsd/crypto/openssl/crypto/ec/
H A Dec_local.h70 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 Dec2_smpl.c220 int ossl_ec_GF2m_simple_point_init(EC_POINT *point) in ossl_ec_GF2m_simple_point_init()
236 void ossl_ec_GF2m_simple_point_finish(EC_POINT *point) in ossl_ec_GF2m_simple_point_finish()
244 void ossl_ec_GF2m_simple_point_clear_finish(EC_POINT *point) in ossl_ec_GF2m_simple_point_clear_finish()
256 int ossl_ec_GF2m_simple_point_copy(EC_POINT *dest, const EC_POINT *src) in ossl_ec_GF2m_simple_point_copy()
275 EC_POINT *point) in ossl_ec_GF2m_simple_point_set_to_infinity()
287 EC_POINT *point, in ossl_ec_GF2m_simple_point_set_affine_coordinates()
319 const EC_POINT *point, in ossl_ec_GF2m_simple_point_get_affine_coordinates()
354 int ossl_ec_GF2m_simple_add(const EC_GROUP *group, EC_POINT *r, in ossl_ec_GF2m_simple_add()
355 const EC_POINT *a, const EC_POINT *b, BN_CTX *ctx) in ossl_ec_GF2m_simple_add()
475 int ossl_ec_GF2m_simple_dbl(const EC_GROUP *group, EC_POINT *r, in ossl_ec_GF2m_simple_dbl()
[all …]
H A Dec_lib.c368 int EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator, in EC_GROUP_set_generator()
438 const EC_POINT *EC_GROUP_get0_generator(const EC_GROUP *group) in EC_GROUP_get0_generator()
714 EC_POINT *EC_POINT_new(const EC_GROUP *group) in EC_POINT_new()
716 EC_POINT *ret; in EC_POINT_new()
742 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 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.c43 EC_POINT **points; /* array with pre-calculated multiples of
94 EC_POINT **pts; in EC_ec_pre_comp_free()
140 int ossl_ec_scalar_mul_ladder(const EC_GROUP *group, EC_POINT *r, in ossl_ec_scalar_mul_ladder()
141 const BIGNUM *scalar, const EC_POINT *point, in ossl_ec_scalar_mul_ladder()
145 EC_POINT *p = NULL; in ossl_ec_scalar_mul_ladder()
146 EC_POINT *s = NULL; in ossl_ec_scalar_mul_ladder()
403 int ossl_ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, in ossl_ec_wNAF_mul()
404 size_t num, const EC_POINT *points[], in ossl_ec_wNAF_mul()
407 const EC_POINT *generator = NULL; in ossl_ec_wNAF_mul()
408 EC_POINT *tmp = NULL; in ossl_ec_wNAF_mul()
[all …]
H A Dec_print.c17 const EC_POINT *point, in EC_POINT_point2hex()
43 EC_POINT *EC_POINT_hex2point(const EC_GROUP *group, in EC_POINT_hex2point()
44 const char *hex, EC_POINT *point, BN_CTX *ctx) in EC_POINT_hex2point()
49 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()
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()
435 const EC_POINT *point, in ossl_ec_GFp_simple_get_Jprojective_coordinates_GFp()
484 EC_POINT *point, in ossl_ec_GFp_simple_point_set_affine_coordinates()
501 const EC_POINT *point, in ossl_ec_GFp_simple_point_get_affine_coordinates()
612 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 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.c49 static int ec_GFp_s390x_nistp_mul(const EC_GROUP *group, EC_POINT *r, in ec_GFp_s390x_nistp_mul()
51 size_t num, const EC_POINT *points[], in ec_GFp_s390x_nistp_mul()
57 const EC_POINT *point_ptr = NULL; in ec_GFp_s390x_nistp_mul()
239 const EC_POINT *pubkey; in ecdsa_s390x_nistp_verify_sig()
308 EC_POINT *r, \
311 const EC_POINT *points[], \
H A Dec_kmeth.c148 int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, in ECDH_compute_key()
202 const EC_POINT *pub_key)) in EC_KEY_METHOD_set_init()
221 const EC_POINT *pub_key, in EC_KEY_METHOD_set_compute_key()
268 const EC_POINT *pub_key)) in EC_KEY_METHOD_get_init()
294 const EC_POINT *pub_key, in EC_KEY_METHOD_get_compute_key()
H A Decp_nistz256.c608 const EC_POINT **point, in ecp_nistz256_windowed_mul()
790 static int ecp_nistz256_is_affine_G(const EC_POINT *generator) in ecp_nistz256_is_affine_G()
804 EC_POINT *P = NULL, *T = NULL; in ecp_nistz256_mult_precompute()
805 const EC_POINT *generator; in ecp_nistz256_mult_precompute()
915 __owur static int ecp_nistz256_set_from_affine(EC_POINT *out, const EC_GROUP *group, in ecp_nistz256_set_from_affine()
931 EC_POINT *r, in ecp_nistz256_points_mul()
934 const EC_POINT *points[], in ecp_nistz256_points_mul()
941 const EC_POINT *generator = NULL; in ecp_nistz256_points_mul()
943 const EC_POINT **new_points = NULL; in ecp_nistz256_points_mul()
977 EC_POINT *pre_comp_generator = EC_POINT_new(group); in ecp_nistz256_points_mul()
[all …]
/freebsd/crypto/openssl/include/openssl/
H A Dec.h111 typedef struct ec_point_st EC_POINT; typedef
221 int EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator,
228 const EC_POINT *EC_GROUP_get0_generator(const EC_GROUP *group);
563 EC_POINT *EC_POINT_new(const EC_GROUP *group);
568 void EC_POINT_free(EC_POINT *point);
573 void EC_POINT_clear_free(EC_POINT *point);
580 int EC_POINT_copy(EC_POINT *dst, const EC_POINT *src);
588 EC_POINT *EC_POINT_dup(const EC_POINT *src, const EC_GROUP *group);
595 int EC_POINT_set_to_infinity(const EC_GROUP *group, EC_POINT *point);
602 OSSL_DEPRECATEDIN_3_0 const EC_METHOD *EC_POINT_method_of(const EC_POINT *point);
[all …]
/freebsd/crypto/openssl/doc/man3/
H A 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 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 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_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 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/crypto/openssh/
H A Dpacket.h29 # 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 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.h43 # define EC_POINT void macro
52 # define EC_POINT void macro
268 int sshkey_ec_validate_public(const EC_GROUP *, const EC_POINT *);
302 void sshkey_dump_ec_point(const EC_GROUP *, const EC_POINT *);
359 # undef EC_POINT
364 # 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
286 # undef EC_POINT
/freebsd/crypto/krb5/src/plugins/preauth/spake/
H A Dopenssl.c56 EC_POINT *M;
57 EC_POINT *N;
168 const EC_POINT *constant = use_m ? gdata->M : gdata->N; in ossl_keygen()
170 EC_POINT *pub = NULL; in ossl_keygen()
218 const EC_POINT *constant = use_m ? gdata->M : gdata->N; in ossl_result()
220 EC_POINT *result = NULL, *pub = NULL; in ossl_result()
/freebsd/crypto/openssl/test/
H A Decstresstest.c41 static BIGNUM *walk_curve(const EC_GROUP *group, EC_POINT *point, in walk_curve()
69 EC_POINT *point = NULL; in test_curve()
H A Dectest.c42 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()
163 EC_POINT *P = NULL, *Q = NULL, *R = NULL; in prime_field_tests()
166 const EC_POINT *points[4]; in prime_field_tests()
774 EC_POINT *P = NULL, *Q = NULL, *R = NULL; in char2_curve_test()
776 const EC_POINT *points[3]; in char2_curve_test()
927 EC_POINT *P = NULL, *Q = NULL, *R = NULL; in char2_field_tests()
1077 EC_POINT *point = NULL; in hybrid_point_encoding_test()
1294 EC_POINT *G = NULL, *P = NULL, *Q = NULL, *Q_CHECK = NULL; in nistp_single_test()
[all …]
/freebsd/crypto/openssl/crypto/sm2/
H A Dsm2_crypt.c124 const EC_POINT *P = EC_KEY_get0_public_key(key); in ossl_sm2_encrypt()
125 EC_POINT *kG = NULL; in ossl_sm2_encrypt()
126 EC_POINT *kP = NULL; in ossl_sm2_encrypt()
284 EC_POINT *C1 = NULL; in ossl_sm2_decrypt()

123