Home
last modified time | relevance | path

Searched refs:EC_KEY (Results 1 – 25 of 110) sorted by relevance

12345

/src/crypto/openssl/include/openssl/
H A Dec.h972 OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_ex(OSSL_LIB_CTX *ctx, const char *propq);
979 OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new(void);
981 OSSL_DEPRECATEDIN_3_0 int EC_KEY_get_flags(const EC_KEY *key);
983 OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_flags(EC_KEY *key, int flags);
985 OSSL_DEPRECATEDIN_3_0 void EC_KEY_clear_flags(EC_KEY *key, int flags);
987 OSSL_DEPRECATEDIN_3_0 int EC_KEY_decoded_from_explicit_params(const EC_KEY *key);
998 OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name_ex(OSSL_LIB_CTX *ctx,
1009 OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid);
1014 OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key);
1021 OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_copy(EC_KEY *dst, const EC_KEY *src);
[all …]
/src/crypto/openssl/include/crypto/
H A Dec.h62 int ossl_ec_key_public_check(const EC_KEY *eckey, BN_CTX *ctx);
63 int ossl_ec_key_public_check_quick(const EC_KEY *eckey, BN_CTX *ctx);
64 int ossl_ec_key_private_check(const EC_KEY *eckey);
65 int ossl_ec_key_pairwise_check(const EC_KEY *eckey, BN_CTX *ctx);
66 OSSL_LIB_CTX *ossl_ec_key_get_libctx(const EC_KEY *eckey);
67 const char *ossl_ec_key_get0_propq(const EC_KEY *eckey);
68 void ossl_ec_key_set0_libctx(EC_KEY *key, OSSL_LIB_CTX *libctx);
75 int ossl_ec_group_fromdata(EC_KEY *ec, const OSSL_PARAM params[]);
77 int ossl_ec_key_fromdata(EC_KEY *ecx, const OSSL_PARAM params[],
79 int ossl_ec_key_otherparams_fromdata(EC_KEY *ec, const OSSL_PARAM params[]);
[all …]
H A Dsm2.h23 int ossl_sm2_key_private_check(const EC_KEY *eckey);
32 const EC_KEY *key);
37 ECDSA_SIG *ossl_sm2_do_sign(const EC_KEY *key,
43 int ossl_sm2_do_verify(const EC_KEY *key,
55 EC_KEY *eckey);
62 EC_KEY *eckey);
67 int ossl_sm2_ciphertext_size(const EC_KEY *key, const EVP_MD *digest,
73 int ossl_sm2_encrypt(const EC_KEY *key,
78 int ossl_sm2_decrypt(const EC_KEY *key,
/src/crypto/openssl/crypto/ec/
H A Dec_kmeth.c57 const EC_KEY_METHOD *EC_KEY_get_method(const EC_KEY *key) in EC_KEY_get_method()
62 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth) in EC_KEY_set_method()
64 void (*finish)(EC_KEY *key) = key->meth->finish; in EC_KEY_set_method()
80 EC_KEY *ossl_ec_key_new_method_int(OSSL_LIB_CTX *libctx, const char *propq, in ossl_ec_key_new_method_int()
83 EC_KEY *ret = OPENSSL_zalloc(sizeof(*ret)); in ossl_ec_key_new_method_int()
142 EC_KEY *EC_KEY_new_method(ENGINE *engine) in EC_KEY_new_method()
149 const EC_KEY *eckey, in ECDH_compute_key()
195 int (*init)(EC_KEY *key), in EC_KEY_METHOD_set_init()
196 void (*finish)(EC_KEY *key), in EC_KEY_METHOD_set_init()
197 int (*copy)(EC_KEY *dest, const EC_KEY *src), in EC_KEY_METHOD_set_init()
[all …]
H A Dec_key.c30 static int ecdsa_keygen_pairwise_test(EC_KEY *eckey, OSSL_CALLBACK *cb,
34 EC_KEY *EC_KEY_new(void) in EC_KEY_new()
40 EC_KEY *EC_KEY_new_ex(OSSL_LIB_CTX *ctx, const char *propq) in EC_KEY_new_ex()
45 EC_KEY *EC_KEY_new_by_curve_name_ex(OSSL_LIB_CTX *ctx, const char *propq, in EC_KEY_new_by_curve_name_ex()
48 EC_KEY *ret = EC_KEY_new_ex(ctx, propq); in EC_KEY_new_by_curve_name_ex()
65 EC_KEY *EC_KEY_new_by_curve_name(int nid) in EC_KEY_new_by_curve_name()
71 void EC_KEY_free(EC_KEY *r) in EC_KEY_free()
103 OPENSSL_clear_free((void *)r, sizeof(EC_KEY)); in EC_KEY_free()
106 EC_KEY *EC_KEY_copy(EC_KEY *dest, const EC_KEY *src) in EC_KEY_copy()
187 EC_KEY *EC_KEY_dup(const EC_KEY *ec_key) in EC_KEY_dup()
[all …]
H A Dec_local.h167 size_t (*priv2oct)(const EC_KEY *eckey, unsigned char *buf, size_t len);
168 int (*oct2priv)(EC_KEY *eckey, const unsigned char *buf, size_t len);
169 int (*set_private)(EC_KEY *eckey, const BIGNUM *priv_key);
170 int (*keygen)(EC_KEY *eckey);
171 int (*keycheck)(const EC_KEY *eckey);
172 int (*keygenpub)(EC_KEY *eckey);
173 int (*keycopy)(EC_KEY *dst, const EC_KEY *src);
174 void (*keyfinish)(EC_KEY *eckey);
177 const EC_POINT *pub_key, const EC_KEY *ecdh);
179 int (*ecdsa_sign_setup)(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinvp,
[all …]
H A Dec_ameth.c29 static int eckey_param2type(int *pptype, void **ppval, const EC_KEY *ec_key) in eckey_param2type()
70 const EC_KEY *ec_key = pkey->pkey.ec; in eckey_pub_encode()
104 EC_KEY *eckey = NULL; in eckey_pub_decode()
152 EC_KEY *eckey = ossl_ec_key_from_pkcs8(p8, libctx, propq); in eckey_priv_decode_ex()
164 EC_KEY ec_key = *(pkey->pkey.ec); in eckey_priv_encode()
283 static int do_EC_KEY_print(BIO *bp, const EC_KEY *x, int off, ec_print_t ktype) in do_EC_KEY_print()
350 EC_KEY *eckey; in eckey_param_decode()
384 EC_KEY *ec; in old_ec_priv_decode()
426 EC_KEY *eckey = pkey->pkey.ec; in ec_pkey_check()
439 EC_KEY *eckey = pkey->pkey.ec; in ec_pkey_public_check()
[all …]
H A Decdsa_sign.c20 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, int dlen, EC_KEY *eckey) in ECDSA_do_sign()
27 EC_KEY *eckey) in ECDSA_do_sign_ex()
35 …type, const unsigned char *dgst, int dlen, unsigned char *sig, unsigned int *siglen, EC_KEY *eckey) in ECDSA_sign()
42 const BIGNUM *r, EC_KEY *eckey) in ECDSA_sign_ex()
50 int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, in ECDSA_sign_setup()
H A Dec_pmeth.c33 EC_KEY *co_key;
115 EC_KEY *ec = (EC_KEY *)EVP_PKEY_get0_EC_KEY(ctx->pkey); in pkey_ec_sign()
153 EC_KEY *ec = (EC_KEY *)EVP_PKEY_get0_EC_KEY(ctx->pkey); in pkey_ec_verify()
171 EC_KEY *eckey; in pkey_ec_derive()
172 const EC_KEY *eckeypub; in pkey_ec_derive()
186 : (EC_KEY *)EVP_PKEY_get0_EC_KEY(ctx->pkey); in pkey_ec_derive()
276 const EC_KEY *ec_key = EVP_PKEY_get0_EC_KEY(ctx->pkey); in pkey_ec_ctrl()
283 EC_KEY *ec_key = (EC_KEY *)EVP_PKEY_get0_EC_KEY(ctx->pkey); in pkey_ec_ctrl()
419 EC_KEY *ec = NULL; in pkey_ec_paramgen()
438 EC_KEY *ec = NULL; in pkey_ec_keygen()
H A Dec_backend.c101 int ossl_ec_set_check_group_type_from_name(EC_KEY *ec, const char *name) in ossl_ec_set_check_group_type_from_name()
112 static int ec_set_check_group_type_from_param(EC_KEY *ec, const OSSL_PARAM *p) in ec_set_check_group_type_from_param()
359 int ossl_ec_set_ecdh_cofactor_mode(EC_KEY *ec, int mode) in ossl_ec_set_ecdh_cofactor_mode()
396 int ossl_ec_key_fromdata(EC_KEY *ec, const OSSL_PARAM params[], int include_private) in ossl_ec_key_fromdata()
497 int ossl_ec_group_fromdata(EC_KEY *ec, const OSSL_PARAM params[]) in ossl_ec_group_fromdata()
516 static int ec_key_point_format_fromdata(EC_KEY *ec, const OSSL_PARAM params[]) in ec_key_point_format_fromdata()
532 static int ec_key_group_check_fromdata(EC_KEY *ec, const OSSL_PARAM params[]) in ec_key_group_check_fromdata()
542 static int ec_set_include_public(EC_KEY *ec, int include) in ec_set_include_public()
554 int ossl_ec_key_otherparams_fromdata(EC_KEY *ec, const OSSL_PARAM params[]) in ossl_ec_key_otherparams_fromdata()
585 int ossl_ec_key_is_foreign(const EC_KEY *ec) in ossl_ec_key_is_foreign()
[all …]
H A Decdsa_ossl.c33 static int ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in,
39 int ossl_ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, in ossl_ecdsa_sign_setup()
52 EC_KEY *eckey) in ossl_ecdsa_sign_sig()
64 const ECDSA_SIG *sig, EC_KEY *eckey) in ossl_ecdsa_verify_sig()
76 const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey) in ossl_ecdsa_sign()
97 EC_KEY *eckey, unsigned int nonce_type, in ossl_ecdsa_deterministic_sign()
132 static int ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, in ecdsa_sign_setup()
263 int ossl_ecdsa_simple_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, in ossl_ecdsa_simple_sign_setup()
272 EC_KEY *eckey) in ossl_ecdsa_simple_sign_sig()
420 const unsigned char *sigbuf, int sig_len, EC_KEY *eckey) in ossl_ecdsa_verify()
[all …]
H A Decdsa_vrf.c27 const ECDSA_SIG *sig, EC_KEY *eckey) in ECDSA_do_verify()
42 const unsigned char *sigbuf, int sig_len, EC_KEY *eckey) in ECDSA_verify()
/src/crypto/openssl/doc/man3/
H A DEC_KEY_new.pod18 EC_KEY objects
30 EC_KEY *EC_KEY_new_ex(OSSL_LIB_CTX *ctx, const char *propq);
31 EC_KEY *EC_KEY_new(void);
32 int EC_KEY_get_flags(const EC_KEY *key);
33 void EC_KEY_set_flags(EC_KEY *key, int flags);
34 void EC_KEY_clear_flags(EC_KEY *key, int flags);
35 EC_KEY *EC_KEY_new_by_curve_name_ex(OSSL_LIB_CTX *ctx, const char *propq,
37 EC_KEY *EC_KEY_new_by_curve_name(int nid);
38 void EC_KEY_free(EC_KEY *key);
39 EC_KEY *EC_KEY_copy(EC_KEY *dst, const EC_KEY *src);
[all …]
H A DPEM_read_CMS.pod71 EC_KEY *PEM_read_EC_PUBKEY(FILE *fp, EC_KEY **x, pem_password_cb *cb, void *u);
72 EC_KEY *PEM_read_bio_EC_PUBKEY(BIO *bp, EC_KEY **x, pem_password_cb *cb, void *u);
73 int PEM_write_EC_PUBKEY(FILE *out, const EC_KEY *x);
74 int PEM_write_bio_EC_PUBKEY(BIO *out, const EC_KEY *x);
76 EC_KEY *PEM_read_ECPrivateKey(FILE *out, EC_KEY **x, pem_password_cb *cb, void *u);
77 EC_KEY *PEM_read_bio_ECPrivateKey(BIO *out, EC_KEY **x, pem_password_cb *cb, void *u);
78 int PEM_write_ECPrivateKey(FILE *out, const EC_KEY *x, const EVP_CIPHER *enc,
81 int PEM_write_bio_ECPrivateKey(BIO *out, const EC_KEY *x, const EVP_CIPHER *enc,
H A DECDSA_sign.pod18 int ECDSA_size(const EC_KEY *eckey);
21 unsigned char *sig, unsigned int *siglen, EC_KEY *eckey);
23 EC_KEY *eckey);
26 const unsigned char *sig, int siglen, EC_KEY *eckey);
28 const ECDSA_SIG *sig, EC_KEY* eckey);
32 EC_KEY *eckey);
33 int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv, BIGNUM **rp);
36 const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey);
111 First step: create an EC_KEY object (note: this part is B<not> ECDSA
116 EC_KEY *eckey;
H A DEC_KEY_get_enc_flags.pod6 - Get and set flags for encoding EC_KEY structures
12 unsigned int EC_KEY_get_enc_flags(const EC_KEY *key);
13 void EC_KEY_set_enc_flags(EC_KEY *eckey, unsigned int flags);
39 EC_KEY.
/src/crypto/openssl/providers/implementations/kem/
H A Dec_kem.c40 EC_KEY *recipient_key;
41 EC_KEY *sender_authkey;
66 static int eckey_check(const EC_KEY *ec, int requires_privatekey) in eckey_check()
100 static const char *ec_curvename_get0(const EC_KEY *ec) in ec_curvename_get0()
113 static int recipient_key_set(PROV_EC_CTX *ctx, EC_KEY *ec) in recipient_key_set()
138 static int sender_authkey_set(PROV_EC_CTX *ctx, EC_KEY *ec) in sender_authkey_set()
158 static EC_KEY *eckey_frompub(EC_KEY *in, in eckey_frompub()
161 EC_KEY *key; in eckey_frompub()
180 static int ecpubkey_todata(const EC_KEY *ec, unsigned char *out, size_t *outlen, in ecpubkey_todata()
215 static int ossl_ec_match_params(const EC_KEY *key1, const EC_KEY *key2) in ossl_ec_match_params()
[all …]
/src/crypto/openssl/crypto/pem/
H A Dpem_all.c34 static EC_KEY *pkey_get_eckey(EVP_PKEY *key, EC_KEY **eckey);
134 static EC_KEY *pkey_get_eckey(EVP_PKEY *key, EC_KEY **eckey) in IMPLEMENT_PEM_rw()
136 EC_KEY *dtmp; in IMPLEMENT_PEM_rw()
150 EC_KEY *PEM_read_bio_ECPrivateKey(BIO *bp, EC_KEY **key, pem_password_cb *cb, in PEM_read_bio_ECPrivateKey()
161 IMPLEMENT_PEM_write_cb(ECPrivateKey, EC_KEY, PEM_STRING_ECPRIVATEKEY, in IMPLEMENT_PEM_rw()
163 IMPLEMENT_PEM_rw(EC_PUBKEY, EC_KEY, PEM_STRING_PUBLIC, EC_PUBKEY) in IMPLEMENT_PEM_rw()
165 EC_KEY *PEM_read_ECPrivateKey(FILE *fp, EC_KEY **eckey, pem_password_cb *cb, in IMPLEMENT_PEM_rw()
/src/crypto/openssl/crypto/evp/
H A Dp_legacy.c65 int EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, EC_KEY *key) in EVP_PKEY_set1_EC_KEY()
76 EC_KEY *evp_pkey_get0_EC_KEY_int(const EVP_PKEY *pkey) in evp_pkey_get0_EC_KEY_int()
85 const EC_KEY *EVP_PKEY_get0_EC_KEY(const EVP_PKEY *pkey) in EVP_PKEY_get0_EC_KEY()
90 EC_KEY *EVP_PKEY_get1_EC_KEY(EVP_PKEY *pkey) in EVP_PKEY_get1_EC_KEY()
92 EC_KEY *ret = evp_pkey_get0_EC_KEY_int(pkey); in EVP_PKEY_get1_EC_KEY()
/src/crypto/openssl/crypto/x509/
H A Dx_all.c447 EC_KEY *d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey) in d2i_EC_PUBKEY_fp()
449 return ASN1_d2i_fp_of(EC_KEY, EC_KEY_new, d2i_EC_PUBKEY, fp, eckey); in d2i_EC_PUBKEY_fp()
452 int i2d_EC_PUBKEY_fp(FILE *fp, const EC_KEY *eckey) in i2d_EC_PUBKEY_fp()
454 return ASN1_i2d_fp_of(EC_KEY, i2d_EC_PUBKEY, fp, eckey); in i2d_EC_PUBKEY_fp()
457 EC_KEY *d2i_ECPrivateKey_fp(FILE *fp, EC_KEY **eckey) in d2i_ECPrivateKey_fp()
459 return ASN1_d2i_fp_of(EC_KEY, EC_KEY_new, d2i_ECPrivateKey, fp, eckey); in d2i_ECPrivateKey_fp()
462 int i2d_ECPrivateKey_fp(FILE *fp, const EC_KEY *eckey) in i2d_ECPrivateKey_fp()
464 return ASN1_i2d_fp_of(EC_KEY, i2d_ECPrivateKey, fp, eckey); in i2d_ECPrivateKey_fp()
467 EC_KEY *d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey) in d2i_EC_PUBKEY_bio()
469 return ASN1_d2i_bio_of(EC_KEY, EC_KEY_new, d2i_EC_PUBKEY, bp, eckey); in d2i_EC_PUBKEY_bio()
[all …]
/src/crypto/openssh/
H A Dssh-pkcs11-client.c53 #define EC_KEY void macro
69 void (*ec_finish)(EC_KEY *key);
108 helper_by_ec(const EC_KEY *ec) in helper_by_ec()
331 const BIGNUM *rp, EC_KEY *ec) in ecdsa_do_sign()
392 ecdsa_do_finish(EC_KEY *ec) in ecdsa_do_finish()
416 EC_KEY *ecdsa = NULL; in wrap_key()
461 EC_KEY *ec_priv = NULL, *ec_cert = NULL; in pkcs11_make_cert()
532 int (*ec_init)(EC_KEY *key); in pkcs11_start_helper_methods()
533 int (*ec_copy)(EC_KEY *dest, const EC_KEY *src); in pkcs11_start_helper_methods()
534 int (*ec_set_group)(EC_KEY *key, const EC_GROUP *grp); in pkcs11_start_helper_methods()
[all …]
H A Dsshkey.h41 # define EC_KEY void macro
50 # define EC_KEY void macro
265 int sshkey_ecdsa_key_to_nid(const EC_KEY *);
269 int sshkey_ec_validate_private(const EC_KEY *);
303 void sshkey_dump_ec_key(const EC_KEY *);
357 # undef EC_KEY
362 # undef EC_KEY
H A Dkexecdh.c46 kex_ecdh_dec_key_group(struct kex *, const struct sshbuf *, EC_KEY *key,
52 EC_KEY *client_key = NULL; in kex_ecdh_keypair()
97 EC_KEY *server_key = NULL; in kex_ecdh_enc()
139 EC_KEY *key, const EC_GROUP *group, struct sshbuf **shared_secretp) in kex_ecdh_dec_key_group()
/src/crypto/openssl/providers/implementations/keymgmt/
H A Dec_kmgmt.c113 static ossl_inline int key_to_params(const EC_KEY *eckey, OSSL_PARAM_BLD *tmpl, in key_to_params()
240 static ossl_inline int otherparams_to_params(const EC_KEY *ec, OSSL_PARAM_BLD *tmpl, in otherparams_to_params()
302 const EC_KEY *ec = keydata; in ec_has()
326 const EC_KEY *ec1 = keydata1; in ec_match()
327 const EC_KEY *ec2 = keydata2; in ec_match()
371 static int common_check_sm2(const EC_KEY *ec, int sm2_wanted) in common_check_sm2()
388 EC_KEY *ec = keydata; in common_import()
443 EC_KEY *ec = keydata; in ec_export()
622 EC_KEY *eck = key; in common_get_params()
806 EC_KEY *eck = key; in ec_set_params()
[all …]
/src/crypto/openssl/crypto/sm2/
H A Dsm2_sign.c27 const EC_KEY *key) in ossl_sm2_compute_z_digest()
150 const EC_KEY *key, in sm2_compute_msg_hash()
207 static ECDSA_SIG *sm2_sig_gen(const EC_KEY *key, const BIGNUM *e) in sm2_sig_gen()
330 static int sm2_sig_verify(const EC_KEY *key, const ECDSA_SIG *sig, in sm2_sig_verify()
414 ECDSA_SIG *ossl_sm2_do_sign(const EC_KEY *key, in ossl_sm2_do_sign()
436 int ossl_sm2_do_verify(const EC_KEY *key, in ossl_sm2_do_verify()
461 EC_KEY *eckey) in ossl_sm2_internal_sign()
502 EC_KEY *eckey) in ossl_sm2_internal_verify()

12345