Home
last modified time | relevance | path

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

12345

/freebsd/crypto/openssl/include/openssl/
H A Dec.h961 OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_ex(OSSL_LIB_CTX *ctx, const char *propq);
968 OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new(void);
970 OSSL_DEPRECATEDIN_3_0 int EC_KEY_get_flags(const EC_KEY *key);
972 OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_flags(EC_KEY *key, int flags);
974 OSSL_DEPRECATEDIN_3_0 void EC_KEY_clear_flags(EC_KEY *key, int flags);
976 OSSL_DEPRECATEDIN_3_0 int EC_KEY_decoded_from_explicit_params(const EC_KEY *key);
987 OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name_ex(OSSL_LIB_CTX *ctx,
998 OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid);
1003 OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key);
1010 OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_copy(EC_KEY *dst, const EC_KEY *src);
[all …]
/freebsd/crypto/openssl/crypto/ec/
H A Dec_kmeth.c58 const EC_KEY_METHOD *EC_KEY_get_method(const EC_KEY *key) in EC_KEY_get_method()
63 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth) in EC_KEY_set_method()
65 void (*finish)(EC_KEY *key) = key->meth->finish; in EC_KEY_set_method()
81 EC_KEY *ossl_ec_key_new_method_int(OSSL_LIB_CTX *libctx, const char *propq, in ossl_ec_key_new_method_int()
84 EC_KEY *ret = OPENSSL_zalloc(sizeof(*ret)); in ossl_ec_key_new_method_int()
148 EC_KEY *EC_KEY_new_method(ENGINE *engine) in EC_KEY_new_method()
155 const EC_KEY *eckey, in ECDH_compute_key()
201 int (*init)(EC_KEY *key), in EC_KEY_METHOD_set_init()
202 void (*finish)(EC_KEY *key), in EC_KEY_METHOD_set_init()
203 int (*copy)(EC_KEY *dest, const EC_KEY *src), in EC_KEY_METHOD_set_init()
[all …]
H A Dec_key.c29 static int ecdsa_keygen_pairwise_test(EC_KEY *eckey, OSSL_CALLBACK *cb,
33 EC_KEY *EC_KEY_new(void) in EC_KEY_new()
39 EC_KEY *EC_KEY_new_ex(OSSL_LIB_CTX *ctx, const char *propq) in EC_KEY_new_ex()
44 EC_KEY *EC_KEY_new_by_curve_name_ex(OSSL_LIB_CTX *ctx, const char *propq, in EC_KEY_new_by_curve_name_ex()
47 EC_KEY *ret = EC_KEY_new_ex(ctx, propq); in EC_KEY_new_by_curve_name_ex()
64 EC_KEY *EC_KEY_new_by_curve_name(int nid) in EC_KEY_new_by_curve_name()
70 void EC_KEY_free(EC_KEY *r) in EC_KEY_free()
102 OPENSSL_clear_free((void *)r, sizeof(EC_KEY)); in EC_KEY_free()
105 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()
349 EC_KEY *eckey; in eckey_param_decode()
383 EC_KEY *ec; in old_ec_priv_decode()
425 EC_KEY *eckey = pkey->pkey.ec; in ec_pkey_check()
438 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()
36 *sig, unsigned int *siglen, EC_KEY *eckey) in ECDSA_sign()
43 const BIGNUM *r, EC_KEY *eckey) in ECDSA_sign_ex()
51 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;
117 EC_KEY *ec = (EC_KEY *)EVP_PKEY_get0_EC_KEY(ctx->pkey); in pkey_ec_sign()
155 EC_KEY *ec = (EC_KEY *)EVP_PKEY_get0_EC_KEY(ctx->pkey); in pkey_ec_verify()
173 EC_KEY *eckey; in pkey_ec_derive()
174 const EC_KEY *eckeypub; in pkey_ec_derive()
188 : (EC_KEY *)EVP_PKEY_get0_EC_KEY(ctx->pkey); in pkey_ec_derive()
280 const EC_KEY *ec_key = EVP_PKEY_get0_EC_KEY(ctx->pkey); in pkey_ec_ctrl()
287 EC_KEY *ec_key = (EC_KEY *)EVP_PKEY_get0_EC_KEY(ctx->pkey); in pkey_ec_ctrl()
434 EC_KEY *ec = NULL; in pkey_ec_paramgen()
453 EC_KEY *ec = NULL; in pkey_ec_keygen()
H A Dec_backend.c100 int ossl_ec_set_check_group_type_from_name(EC_KEY *ec, const char *name) in ossl_ec_set_check_group_type_from_name()
111 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()
499 int ossl_ec_group_fromdata(EC_KEY *ec, const OSSL_PARAM params[]) in ossl_ec_group_fromdata()
518 static int ec_key_point_format_fromdata(EC_KEY *ec, const OSSL_PARAM params[]) in ec_key_point_format_fromdata()
534 static int ec_key_group_check_fromdata(EC_KEY *ec, const OSSL_PARAM params[]) in ec_key_group_check_fromdata()
544 static int ec_set_include_public(EC_KEY *ec, int include) in ec_set_include_public()
556 int ossl_ec_key_otherparams_fromdata(EC_KEY *ec, const OSSL_PARAM params[]) in ossl_ec_key_otherparams_fromdata()
587 int ossl_ec_key_is_foreign(const EC_KEY *ec) in ossl_ec_key_is_foreign()
[all …]
H A Decdsa_ossl.c32 int ossl_ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, in ossl_ecdsa_sign_setup()
45 EC_KEY *eckey) in ossl_ecdsa_sign_sig()
57 const ECDSA_SIG *sig, EC_KEY *eckey) in ossl_ecdsa_verify_sig()
69 const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey) in ossl_ecdsa_sign()
88 static int ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, in ecdsa_sign_setup()
207 int ossl_ecdsa_simple_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, in ossl_ecdsa_simple_sign_setup()
215 EC_KEY *eckey) in ossl_ecdsa_simple_sign_sig()
362 const unsigned char *sigbuf, int sig_len, EC_KEY *eckey) in ossl_ecdsa_verify()
387 const ECDSA_SIG *sig, EC_KEY *eckey) in ossl_ecdsa_simple_verify_sig()
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()
/freebsd/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,
/freebsd/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.
/freebsd/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()
162 IMPLEMENT_PEM_write_cb(ECPrivateKey, EC_KEY, PEM_STRING_ECPRIVATEKEY, in IMPLEMENT_PEM_rw()
164 IMPLEMENT_PEM_rw(EC_PUBKEY, EC_KEY, PEM_STRING_PUBLIC, EC_PUBKEY) in IMPLEMENT_PEM_rw()
166 EC_KEY *PEM_read_ECPrivateKey(FILE *fp, EC_KEY **eckey, pem_password_cb *cb, in IMPLEMENT_PEM_rw()
/freebsd/crypto/openssl/crypto/evp/
H A Dp_legacy.c58 int EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, EC_KEY *key) in EVP_PKEY_set1_EC_KEY()
69 EC_KEY *evp_pkey_get0_EC_KEY_int(const EVP_PKEY *pkey) in evp_pkey_get0_EC_KEY_int()
78 const EC_KEY *EVP_PKEY_get0_EC_KEY(const EVP_PKEY *pkey) in EVP_PKEY_get0_EC_KEY()
83 EC_KEY *EVP_PKEY_get1_EC_KEY(EVP_PKEY *pkey) in EVP_PKEY_get1_EC_KEY()
85 EC_KEY *ret = evp_pkey_get0_EC_KEY_int(pkey); in EVP_PKEY_get1_EC_KEY()
/freebsd/crypto/openssl/crypto/x509/
H A Dx_all.c404 EC_KEY *d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey) in d2i_EC_PUBKEY_fp()
406 return ASN1_d2i_fp_of(EC_KEY, EC_KEY_new, d2i_EC_PUBKEY, fp, eckey); in d2i_EC_PUBKEY_fp()
409 int i2d_EC_PUBKEY_fp(FILE *fp, const EC_KEY *eckey) in i2d_EC_PUBKEY_fp()
411 return ASN1_i2d_fp_of(EC_KEY, i2d_EC_PUBKEY, fp, eckey); in i2d_EC_PUBKEY_fp()
414 EC_KEY *d2i_ECPrivateKey_fp(FILE *fp, EC_KEY **eckey) in d2i_ECPrivateKey_fp()
416 return ASN1_d2i_fp_of(EC_KEY, EC_KEY_new, d2i_ECPrivateKey, fp, eckey); in d2i_ECPrivateKey_fp()
419 int i2d_ECPrivateKey_fp(FILE *fp, const EC_KEY *eckey) in i2d_ECPrivateKey_fp()
421 return ASN1_i2d_fp_of(EC_KEY, i2d_ECPrivateKey, fp, eckey); in i2d_ECPrivateKey_fp()
424 EC_KEY *d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey) in d2i_EC_PUBKEY_bio()
426 return ASN1_d2i_bio_of(EC_KEY, EC_KEY_new, d2i_EC_PUBKEY, bp, eckey); in d2i_EC_PUBKEY_bio()
[all …]
/freebsd/crypto/openssh/
H A Dsshkey.h38 # define EC_KEY void macro
47 # define EC_KEY void macro
134 EC_KEY *ecdsa;
261 int sshkey_ecdsa_key_to_nid(EC_KEY *);
264 int sshkey_ec_validate_private(const EC_KEY *);
292 void sshkey_dump_ec_key(const EC_KEY *);
342 # undef EC_KEY
346 # undef EC_KEY
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()
328 const BIGNUM *rp, EC_KEY *ec) in ecdsa_do_sign()
388 ecdsa_do_finish(EC_KEY *ec) in ecdsa_do_finish()
491 int (*ec_init)(EC_KEY *key); in pkcs11_start_helper_methods()
492 int (*ec_copy)(EC_KEY *dest, const EC_KEY *src); in pkcs11_start_helper_methods()
493 int (*ec_set_group)(EC_KEY *key, const EC_GROUP *grp); in pkcs11_start_helper_methods()
494 int (*ec_set_private)(EC_KEY *key, const BIGNUM *priv_key); in pkcs11_start_helper_methods()
495 int (*ec_set_public)(EC_KEY *key, const EC_POINT *pub_key); in pkcs11_start_helper_methods()
[all …]
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()
H A Dkex.h39 # define EC_KEY void macro
46 # define EC_KEY void macro
178 EC_KEY *ec_client_key; /* ECDH */
271 # undef EC_KEY
/freebsd/crypto/openssl/providers/implementations/keymgmt/
H A Dec_kmgmt.c111 int key_to_params(const EC_KEY *eckey, OSSL_PARAM_BLD *tmpl, in key_to_params()
239 int otherparams_to_params(const EC_KEY *ec, OSSL_PARAM_BLD *tmpl, in otherparams_to_params()
306 const EC_KEY *ec = keydata; in ec_has()
330 const EC_KEY *ec1 = keydata1; in ec_match()
331 const EC_KEY *ec2 = keydata2; in ec_match()
375 static int common_check_sm2(const EC_KEY *ec, int sm2_wanted) in common_check_sm2()
393 EC_KEY *ec = keydata; in common_import()
452 EC_KEY *ec = keydata; in ec_export()
639 EC_KEY *eck = key; in common_get_params()
827 EC_KEY *eck = key; in ec_set_params()
[all …]
/freebsd/crypto/openssl/crypto/sm2/
H A Dsm2_sign.c28 const EC_KEY *key) in ossl_sm2_compute_z_digest()
149 const EC_KEY *key, in sm2_compute_msg_hash()
204 static ECDSA_SIG *sm2_sig_gen(const EC_KEY *key, const BIGNUM *e) in sm2_sig_gen()
319 static int sm2_sig_verify(const EC_KEY *key, const ECDSA_SIG *sig, in sm2_sig_verify()
398 ECDSA_SIG *ossl_sm2_do_sign(const EC_KEY *key, in ossl_sm2_do_sign()
420 int ossl_sm2_do_verify(const EC_KEY *key, in ossl_sm2_do_verify()
445 EC_KEY *eckey) in ossl_sm2_internal_sign()
486 EC_KEY *eckey) in ossl_sm2_internal_verify()

12345