Searched refs:EC_GROUP (Results 1 - 25 of 56) sorted by relevance

123

/freebsd-13-stable/crypto/openssl/crypto/ec/
H A Dec_local.h28 /* Use custom formats for EC_GROUP, EC_POINT and EC_KEY */
48 int (*group_init) (EC_GROUP *);
49 void (*group_finish) (EC_GROUP *);
50 void (*group_clear_finish) (EC_GROUP *);
51 int (*group_copy) (EC_GROUP *, const EC_GROUP *);
53 int (*group_set_curve) (EC_GROUP *, const BIGNUM *p, const BIGNUM *a,
55 int (*group_get_curve) (const EC_GROUP *, BIGNUM *p, BIGNUM *a, BIGNUM *b,
58 int (*group_get_degree) (const EC_GROUP *);
59 int (*group_order_bits) (const EC_GROUP *);
[all...]
H A Dec_cvt.c14 EC_GROUP *EC_GROUP_new_curve_GFp(const BIGNUM *p, const BIGNUM *a,
18 EC_GROUP *ret;
63 EC_GROUP *EC_GROUP_new_curve_GF2m(const BIGNUM *p, const BIGNUM *a,
67 EC_GROUP *ret;
H A Dec_lib.c18 /* functions for EC_GROUP objects */
20 EC_GROUP *EC_GROUP_new(const EC_METHOD *meth)
22 EC_GROUP *ret;
61 void EC_pre_comp_free(EC_GROUP *group)
94 void EC_GROUP_free(EC_GROUP *group)
111 void EC_GROUP_clear_free(EC_GROUP *group)
130 int EC_GROUP_copy(EC_GROUP *dest, const EC_GROUP *src)
234 EC_GROUP *EC_GROUP_dup(const EC_GROUP *
[all...]
H A Decp_mont.c76 int ec_GFp_mont_group_init(EC_GROUP *group)
86 void ec_GFp_mont_group_finish(EC_GROUP *group)
95 void ec_GFp_mont_group_clear_finish(EC_GROUP *group)
104 int ec_GFp_mont_group_copy(EC_GROUP *dest, const EC_GROUP *src)
135 int ec_GFp_mont_group_set_curve(EC_GROUP *group, const BIGNUM *p,
188 int ec_GFp_mont_field_mul(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a,
199 int ec_GFp_mont_field_sqr(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a,
215 int ec_GFp_mont_field_inv(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a,
258 int ec_GFp_mont_field_encode(const EC_GROUP *grou
[all...]
H A Dec_oct.c18 int EC_POINT_set_compressed_coordinates(const EC_GROUP *group, EC_POINT *point,
53 int EC_POINT_set_compressed_coordinates_GFp(const EC_GROUP *group,
61 int EC_POINT_set_compressed_coordinates_GF2m(const EC_GROUP *group,
70 size_t EC_POINT_point2oct(const EC_GROUP *group, const EC_POINT *point,
101 int EC_POINT_oct2point(const EC_GROUP *group, EC_POINT *point,
129 size_t EC_POINT_point2buf(const EC_GROUP *group, const EC_POINT *point,
H A Dec_print.c14 BIGNUM *EC_POINT_point2bn(const EC_GROUP *group,
34 EC_POINT *EC_POINT_bn2point(const EC_GROUP *group,
75 char *EC_POINT_point2hex(const EC_GROUP *group,
107 EC_POINT *EC_POINT_hex2point(const EC_GROUP *group,
H A Decp_nist.c78 int ec_GFp_nist_group_copy(EC_GROUP *dest, const EC_GROUP *src)
85 int ec_GFp_nist_group_set_curve(EC_GROUP *group, const BIGNUM *p,
120 int ec_GFp_nist_field_mul(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a,
145 int ec_GFp_nist_field_sqr(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a,
H A Dec2_smpl.c19 * Initialize a GF(2^m)-based EC_GROUP structure. Note that all other members
22 int ec_GF2m_simple_group_init(EC_GROUP *group)
38 * Free a GF(2^m)-based EC_GROUP structure. Note that all other members are
41 void ec_GF2m_simple_group_finish(EC_GROUP *group)
49 * Clear and free a GF(2^m)-based EC_GROUP structure. Note that all other
52 void ec_GF2m_simple_group_clear_finish(EC_GROUP *group)
66 * Copy a GF(2^m)-based EC_GROUP structure. Note that all other members are
69 int ec_GF2m_simple_group_copy(EC_GROUP *dest, const EC_GROUP *src)
94 /* Set the curve parameters of an EC_GROUP structur
[all...]
H A Decp_smpl.c91 int ec_GFp_simple_group_init(EC_GROUP *group)
106 void ec_GFp_simple_group_finish(EC_GROUP *group)
113 void ec_GFp_simple_group_clear_finish(EC_GROUP *group)
120 int ec_GFp_simple_group_copy(EC_GROUP *dest, const EC_GROUP *src)
134 int ec_GFp_simple_group_set_curve(EC_GROUP *group,
193 int ec_GFp_simple_group_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a,
238 int ec_GFp_simple_group_get_degree(const EC_GROUP *group)
243 int ec_GFp_simple_group_check_discriminant(const EC_GROUP *group, BN_CTX *ctx)
360 int ec_GFp_simple_point_set_to_infinity(const EC_GROUP *grou
[all...]
H A Dec_check.c13 int EC_GROUP_check(const EC_GROUP *group, BN_CTX *ctx)
H A Dec_asn1.c17 int EC_GROUP_get_basis_type(const EC_GROUP *group)
42 int EC_GROUP_get_trinomial_basis(const EC_GROUP *group, unsigned int *k)
62 int EC_GROUP_get_pentanomial_basis(const EC_GROUP *group, unsigned int *k1,
244 static int ec_asn1_group2fieldid(const EC_GROUP *, X9_62_FIELDID *);
246 static int ec_asn1_group2curve(const EC_GROUP *, X9_62_CURVE *);
250 static int ec_asn1_group2fieldid(const EC_GROUP *group, X9_62_FIELDID *field)
372 static int ec_asn1_group2curve(const EC_GROUP *group, X9_62_CURVE *curve)
446 ECPARAMETERS *EC_GROUP_get_ecparameters(const EC_GROUP *group,
532 ECPKPARAMETERS *EC_GROUP_get_ecpkparameters(const EC_GROUP *group,
585 EC_GROUP *EC_GROUP_new_from_ecparameter
[all...]
H A Dec2_oct.c33 int ec_GF2m_simple_set_compressed_coordinates(const EC_GROUP *group,
113 size_t ec_GF2m_simple_point2oct(const EC_GROUP *group, const EC_POINT *point,
235 int ec_GF2m_simple_oct2point(const EC_GROUP *group, EC_POINT *point,
H A Decp_oct.c16 int ec_GFp_simple_set_compressed_coordinates(const EC_GROUP *group,
154 size_t ec_GFp_simple_point2oct(const EC_GROUP *group, const EC_POINT *point,
269 int ec_GFp_simple_oct2point(const EC_GROUP *group, EC_POINT *point,
H A Decdh_ossl.c45 const EC_GROUP *group;
/freebsd-13-stable/crypto/openssl/include/openssl/
H A Dec.h45 typedef struct ec_group_st EC_GROUP; typedef in typeref:struct:ec_group_st
100 /* EC_GROUP functions */
103 /** Creates a new EC_GROUP object
105 * \return newly created EC_GROUP object or NULL in case of an error.
107 EC_GROUP *EC_GROUP_new(const EC_METHOD *meth);
109 /** Frees a EC_GROUP object
110 * \param group EC_GROUP object to be freed.
112 void EC_GROUP_free(EC_GROUP *group);
114 /** Clears and frees a EC_GROUP object
115 * \param group EC_GROUP objec
[all...]
/freebsd-13-stable/crypto/openssl/include/crypto/
H A Dec.h22 * [1,EC_GROUP::order), where EC_GROUP::order is the cardinality of the
25 * res := x^(-1) (mod EC_GROUP::order).
28 * - the EC_GROUP order is prime, and
29 * - x is included in the range [1, EC_GROUP::order).
33 * If the EC_GROUP order is even, this function explicitly returns 0 as
41 __owur int ec_group_do_inverse_ord(const EC_GROUP *group, BIGNUM *res,
/freebsd-13-stable/crypto/openssh/
H A Dkex.h40 # define EC_GROUP void macro
47 # define EC_GROUP void macro
165 const EC_GROUP *ec_group; /* ECDH */
212 int kex_ecdh_hash(int, const EC_GROUP *, const char *, const char *,
235 # undef EC_GROUP macro
H A Dpacket.h27 # define EC_GROUP void macro
33 # define EC_GROUP 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);
214 # undef EC_GROUP macro
218 # undef EC_GROUP macro
H A Dsshkey.h38 # define EC_GROUP void macro
46 # define EC_GROUP void macro
175 int sshkey_ec_validate_public(const EC_GROUP *, const EC_POINT *);
202 void sshkey_dump_ec_point(const EC_GROUP *, const EC_POINT *);
269 # undef EC_GROUP macro
273 # undef EC_GROUP macro
H A Dopacket.h11 void ssh_packet_put_ecpoint(struct ssh *, const EC_GROUP *, const EC_POINT *);
21 void ssh_packet_get_ecpoint(struct ssh *, const EC_GROUP *, EC_POINT *);
H A Dkexecdh.c52 const EC_GROUP *ec_group,
H A Dsshbuf-getput-crypto.c76 get_ec(const u_char *d, size_t len, EC_POINT *v, const EC_GROUP *g)
90 sshbuf_get_ec(struct sshbuf *buf, EC_POINT *v, const EC_GROUP *g)
192 sshbuf_put_ec(struct sshbuf *buf, const EC_POINT *v, const EC_GROUP *g)
H A Dkexecdhc.c59 const EC_GROUP *group;
100 const EC_GROUP *group;
H A Dopacket.c93 ssh_packet_put_ecpoint(struct ssh *ssh, const EC_GROUP *curve,
159 ssh_packet_get_ecpoint(struct ssh *ssh, const EC_GROUP *curve, EC_POINT *point)
/freebsd-13-stable/crypto/openssl/crypto/sm2/
H A Dsm2_pmeth.c22 EC_GROUP *gen_group;
166 EC_GROUP *group;

Completed in 263 milliseconds

123