Home
last modified time | relevance | path

Searched refs:ec (Results 1 – 25 of 114) sorted by relevance

12345

/openssl/crypto/cms/
H A Dcms_enc.c44 enc = ec->cipher ? 1 : 0; in ossl_cms_EncryptedContent_init_bio()
56 cipher = ec->cipher; in ossl_cms_EncryptedContent_init_bio()
60 if (ec->key != NULL) in ossl_cms_EncryptedContent_init_bio()
110 ec->taglen, ec->tag) <= 0) { in ossl_cms_EncryptedContent_init_bio()
130 if (!ec->key) { in ossl_cms_EncryptedContent_init_bio()
131 ec->key = tkey; in ossl_cms_EncryptedContent_init_bio()
153 OPENSSL_clear_free(ec->key, ec->keylen); in ossl_cms_EncryptedContent_init_bio()
195 OPENSSL_clear_free(ec->key, ec->keylen); in ossl_cms_EncryptedContent_init_bio()
196 ec->key = NULL; in ossl_cms_EncryptedContent_init_bio()
210 ec->cipher = cipher; in ossl_cms_EncryptedContent_init()
[all …]
H A Dcms_env.c541 if (EVP_PKEY_encrypt(pctx, NULL, &eklen, ec->key, ec->keylen) <= 0) in cms_RecipientInfo_ktri_encrypt()
548 if (EVP_PKEY_encrypt(pctx, ek, &eklen, ec->key, ec->keylen) <= 0) in cms_RecipientInfo_ktri_encrypt()
637 OPENSSL_clear_free(ec->key, ec->keylen); in cms_RecipientInfo_ktri_decrypt()
638 ec->key = ek; in cms_RecipientInfo_ktri_decrypt()
879 if (ec == NULL) in cms_RecipientInfo_kekri_encrypt()
948 if (ec == NULL) in cms_RecipientInfo_kekri_decrypt()
997 OPENSSL_clear_free(ec->key, ec->keylen); in cms_RecipientInfo_kekri_decrypt()
998 ec->key = ukey; in cms_RecipientInfo_kekri_decrypt()
1131 OPENSSL_clear_free(ec->key, ec->keylen); in cms_env_clear_ec()
1132 ec->key = NULL; in cms_env_clear_ec()
[all …]
H A Dcms_pwri.c48 CMS_EncryptedContentInfo *ec; in CMS_add0_recipient_password() local
56 ec = ossl_cms_get0_env_enc_content(cms); in CMS_add0_recipient_password()
57 if (ec == NULL) in CMS_add0_recipient_password()
71 kekciph = ec->cipher; in CMS_add0_recipient_password()
310 CMS_EncryptedContentInfo *ec; in ossl_cms_RecipientInfo_pwri_crypt() local
321 ec = ossl_cms_get0_env_enc_content(cms); in ossl_cms_RecipientInfo_pwri_crypt()
382 if (!kek_wrap_key(NULL, &keylen, ec->key, ec->keylen, kekctx, cms_ctx)) in ossl_cms_RecipientInfo_pwri_crypt()
390 if (!kek_wrap_key(key, &keylen, ec->key, ec->keylen, kekctx, cms_ctx)) in ossl_cms_RecipientInfo_pwri_crypt()
405 OPENSSL_clear_free(ec->key, ec->keylen); in ossl_cms_RecipientInfo_pwri_crypt()
406 ec->key = key; in ossl_cms_RecipientInfo_pwri_crypt()
[all …]
H A Dcms_kari.c261 CMS_EncryptedContentInfo *ec; in CMS_RecipientInfo_kari_decrypt() local
271 ec = ossl_cms_get0_env_enc_content(cms); in CMS_RecipientInfo_kari_decrypt()
272 OPENSSL_clear_free(ec->key, ec->keylen); in CMS_RecipientInfo_kari_decrypt()
273 ec->key = cek; in CMS_RecipientInfo_kari_decrypt()
274 ec->keylen = ceklen; in CMS_RecipientInfo_kari_decrypt()
480 CMS_EncryptedContentInfo *ec; in ossl_cms_RecipientInfo_kari_encrypt() local
491 ec = ossl_cms_get0_env_enc_content(cms); in ossl_cms_RecipientInfo_kari_encrypt()
493 if (!cms_wrap_init(kari, ec->cipher)) in ossl_cms_RecipientInfo_kari_encrypt()
516 if (!cms_kek_cipher(&enckey, &enckeylen, ec->key, ec->keylen, in ossl_cms_RecipientInfo_kari_encrypt()
H A Dcms_smime.c724 if (ec != NULL) { in CMS_decrypt_set1_pkey_and_peer()
725 OPENSSL_clear_free(ec->key, ec->keylen); in CMS_decrypt_set1_pkey_and_peer()
726 ec->key = NULL; in CMS_decrypt_set1_pkey_and_peer()
727 ec->keylen = 0; in CMS_decrypt_set1_pkey_and_peer()
730 if (ris != NULL && ec != NULL) in CMS_decrypt_set1_pkey_and_peer()
731 debug = ec->debug; in CMS_decrypt_set1_pkey_and_peer()
844 if (ec != NULL) { in CMS_decrypt_set1_password()
845 OPENSSL_clear_free(ec->key, ec->keylen); in CMS_decrypt_set1_password()
846 ec->key = NULL; in CMS_decrypt_set1_password()
847 ec->keylen = 0; in CMS_decrypt_set1_password()
[all …]
/openssl/demos/http3/
H A Dossl-nghttp3.c236 int ec; in OSSL_DEMO_H3_CONN_new_for_conn() local
346 if (ec < 0) { in OSSL_DEMO_H3_CONN_new_for_conn()
349 nghttp3_strerror(ec), ec); in OSSL_DEMO_H3_CONN_new_for_conn()
362 if (ec < 0) { in OSSL_DEMO_H3_CONN_new_for_conn()
365 nghttp3_strerror(ec), ec); in OSSL_DEMO_H3_CONN_new_for_conn()
375 nghttp3_strerror(ec), ec); in OSSL_DEMO_H3_CONN_new_for_conn()
458 int ec; in h3_conn_pump_stream() local
543 nghttp3_strerror(ec), ec); in h3_conn_pump_stream()
567 int ec, fin; in OSSL_DEMO_H3_CONN_handle_events() local
714 int ec; in OSSL_DEMO_H3_CONN_submit_request() local
[all …]
/openssl/crypto/ec/
H A Dec_ameth.c234 if (pkey->pkey.ec == NULL || EC_KEY_get0_group(pkey->pkey.ec) == NULL) in ec_missing_parameters()
245 if (to->pkey.ec == NULL) { in ec_copy_parameters()
246 to->pkey.ec = EC_KEY_new(); in ec_copy_parameters()
247 if (to->pkey.ec == NULL) in ec_copy_parameters()
274 EC_KEY_free(pkey->pkey.ec); in int_ec_free()
383 EC_KEY *ec; in old_ec_priv_decode() local
425 EC_KEY *eckey = pkey->pkey.ec; in ec_pkey_check()
438 EC_KEY *eckey = pkey->pkey.ec; in ec_pkey_public_check()
454 EC_KEY *eckey = pkey->pkey.ec; in ec_pkey_param_check()
615 if (ec == NULL) { in ec_pkey_import_from()
[all …]
H A Dec_backend.c108 EC_KEY_set_flags(ec, flags); in ossl_ec_set_check_group_type_from_name()
361 const EC_GROUP *ecg = EC_KEY_get0_group(ec); in ossl_ec_set_ecdh_cofactor_mode()
407 ecg = EC_KEY_get0_group(ec); in ossl_ec_key_fromdata()
504 if (ec == NULL) in ossl_ec_group_fromdata()
510 if (!EC_KEY_set_group(ec, group)) in ossl_ec_group_fromdata()
529 EC_KEY_set_conv_form(ec, format); in ec_key_point_format_fromdata()
546 int flags = EC_KEY_get_enc_flags(ec); in ec_set_include_public()
552 EC_KEY_set_enc_flags(ec, flags); in ec_set_include_public()
560 if (ec == NULL) in ossl_ec_key_otherparams_fromdata()
587 int ossl_ec_key_is_foreign(const EC_KEY *ec) in ossl_ec_key_is_foreign() argument
[all …]
H A Dec_pmeth.c116 const int sig_sz = ECDSA_size(ec); in pkey_ec_sign()
430 EC_KEY *ec = NULL; in pkey_ec_paramgen() local
438 ec = EC_KEY_new(); in pkey_ec_paramgen()
439 if (ec == NULL) in pkey_ec_paramgen()
443 EC_KEY_free(ec); in pkey_ec_paramgen()
449 EC_KEY *ec = NULL; in pkey_ec_keygen() local
457 ec = EC_KEY_new(); in pkey_ec_keygen()
458 if (ec == NULL) in pkey_ec_keygen()
461 EC_KEY_free(ec); in pkey_ec_keygen()
468 ret = EC_KEY_set_group(ec, dctx->gen_group); in pkey_ec_keygen()
[all …]
/openssl/providers/implementations/keymgmt/
H A Dec_kmgmt.c249 if (ec == NULL) in otherparams_to_params()
396 EC_KEY *ec = keydata; in common_import() local
1058 EC_KEY *ec = templ; in ec_gen_set_template() local
1281 EC_KEY *ec = NULL; in ec_gen() local
1340 return ec; in ec_gen()
1343 EC_KEY_free(ec); in ec_gen()
1355 EC_KEY *ec = NULL; in sm2_gen() local
1390 return ec; in sm2_gen()
1393 EC_KEY_free(ec); in sm2_gen()
1425 EC_KEY *ec = NULL; in common_load() local
[all …]
/openssl/providers/implementations/kem/
H A Dec_kem.c118 if (ec != NULL) { in recipient_key_set()
126 if (!EC_KEY_up_ref(ec)) in recipient_key_set()
128 ctx->recipient_key = ec; in recipient_key_set()
143 if (ec != NULL) { in sender_authkey_set()
144 if (!EC_KEY_up_ref(ec)) in sender_authkey_set()
146 ctx->sender_authkey = ec; in sender_authkey_set()
186 group = EC_KEY_get0_group(ec); in ecpubkey_todata()
187 pub = EC_KEY_get0_public_key(ec); in ecpubkey_todata()
239 EC_KEY *ec = vec; in eckem_init() local
247 rv = recipient_key_set(ctx, ec); in eckem_init()
[all …]
/openssl/providers/implementations/signature/
H A Dsm2_sig.c66 EC_KEY *ec; member
146 if (ec == NULL && psm2ctx->ec == NULL) { in sm2sig_signature_init()
151 if (ec != NULL) { in sm2sig_signature_init()
152 if (!EC_KEY_up_ref(ec)) in sm2sig_signature_init()
154 EC_KEY_free(psm2ctx->ec); in sm2sig_signature_init()
155 psm2ctx->ec = ec; in sm2sig_signature_init()
168 size_t ecsize = ECDSA_size(ctx->ec); in sm2sig_sign()
342 EC_KEY_free(ctx->ec); in sm2sig_freectx()
358 dstctx->ec = NULL; in sm2sig_dupctx()
364 if (srcctx->ec != NULL && !EC_KEY_up_ref(srcctx->ec)) in sm2sig_dupctx()
[all …]
H A Decdsa_sig.c74 EC_KEY *ec; member
272 if (ec == NULL && ctx->ec == NULL) { in ecdsa_signverify_init()
277 if (ec != NULL) { in ecdsa_signverify_init()
278 if (!EC_KEY_up_ref(ec)) in ecdsa_signverify_init()
280 EC_KEY_free(ctx->ec); in ecdsa_signverify_init()
281 ctx->ec = ec; in ecdsa_signverify_init()
354 ctx->ec); in ecdsa_sign_directly()
615 EC_KEY_free(ctx->ec); in ecdsa_freectx()
634 dstctx->ec = NULL; in ecdsa_dupctx()
637 if (srcctx->ec != NULL && !EC_KEY_up_ref(srcctx->ec)) in ecdsa_dupctx()
[all …]
/openssl/providers/
H A Dfips.module.sources177 crypto/ec/ec2_oct.c
178 crypto/ec/ec2_smpl.c
179 crypto/ec/ec_asn1.c
181 crypto/ec/ec_check.c
183 crypto/ec/ec_cvt.c
184 crypto/ec/ec_key.c
186 crypto/ec/ec_lib.c
188 crypto/ec/ec_mult.c
189 crypto/ec/ec_oct.c
198 crypto/ec/ecp_oct.c
[all …]
H A Dfips-sources.checksums177 ae1637d89287c9d22a34bdc0d67f6e01262a2f8dcef9b61369dba8c334f5a80d crypto/ec/ec2_oct.c
178 9965a95c878438eb94bb0c21876b5a971f47b91f9d22f9c93cf7209a184cd1d1 crypto/ec/ec2_smpl.c
179 a1f22814f501780591da20de5e724895438094824fce440fd026850c46ad8149 crypto/ec/ec_asn1.c
181 7f19cebad4a94db291464b0d93006a87d15ccec93b94f725052a1037107a96be crypto/ec/ec_check.c
183 8cfd0dcfb5acbf6105691a2d5e2826dba1ff3906707bc9dd6ff9bffcc306468f crypto/ec/ec_cvt.c
184 993c69bdd164a54e3536f9ff1190e80f70772a626cf4b5623e73634ef39469e8 crypto/ec/ec_key.c
186 c4ba4261db0565be046b630782b430c3af5e0c9f0cc2c262dd08fc5a6ca8b123 crypto/ec/ec_lib.c
188 7417037d376a99498b3044982d72fbe07bcd2cc5b78f73c3665e87c9202af418 crypto/ec/ec_mult.c
189 5ad8b7c52f91416c5e93b96e1d19f6c0ba1bb8f99d1e382ac43025e8d060a278 crypto/ec/ec_oct.c
198 51cb98e7e9c241e33261589f0d74103238baaa850e333c61ff1da360e127518a crypto/ec/ecp_oct.c
[all …]
H A Dencoders.inc24 #define ENCODER_STRUCTURE_EC "ec"
59 ENCODER_TEXT("EC", ec, yes),
111 ENCODER_w_structure("EC", ec, yes, der, type_specific_no_pub),
112 ENCODER_w_structure("EC", ec, yes, pem, type_specific_no_pub),
114 ENCODER("EC", ec, yes, blob),
181 ENCODER_w_structure("EC", ec, yes, der, PrivateKeyInfo),
182 ENCODER_w_structure("EC", ec, yes, pem, PrivateKeyInfo),
248 ENCODER_w_structure("EC", ec, yes, der, EC),
249 ENCODER_w_structure("EC", ec, yes, pem, EC),
273 ENCODER_w_structure("EC", ec, yes, der, X9_62),
[all …]
/openssl/providers/common/der/
H A Dder_ecx_key.c14 int ossl_DER_w_algorithmIdentifier_X25519(WPACKET *pkt, int cont, ECX_KEY *ec) in ossl_DER_w_algorithmIdentifier_X25519() argument
23 int ossl_DER_w_algorithmIdentifier_X448(WPACKET *pkt, int cont, ECX_KEY *ec) in ossl_DER_w_algorithmIdentifier_X448() argument
32 int ossl_DER_w_algorithmIdentifier_ED25519(WPACKET *pkt, int cont, ECX_KEY *ec) in ossl_DER_w_algorithmIdentifier_ED25519() argument
41 int ossl_DER_w_algorithmIdentifier_ED448(WPACKET *pkt, int cont, ECX_KEY *ec) in ossl_DER_w_algorithmIdentifier_ED448() argument
/openssl/test/certs/
H A Dsetup.sh121 ./mkcert.sh genca "CA" ca-key-ec-explicit ca-cert-ec-explicit root-key root-cert
123 ./mkcert.sh genca "CA" ca-key-ec-named ca-cert-ec-named root-key root-cert
206 ./mkcert.sh genee server.example ee-key-ec-explicit ee-cert-ec-explicit ca-key-ec-named ca-cert-ec-…
208 ./mkcert.sh genee server.example ee-key-ec-named-explicit \
209 ee-cert-ec-named-explicit ca-key-ec-explicit ca-cert-ec-explicit
211 ./mkcert.sh genee server.example ee-key-ec-named-named \
212 ee-cert-ec-named-named ca-key-ec-named ca-cert-ec-named
480 …-224" ./mkcert.sh genee server.example ee-key-ec-named-named ee-cert-ec-sha3-224 ca-key-ec-named c…
481 …-256" ./mkcert.sh genee server.example ee-key-ec-named-named ee-cert-ec-sha3-256 ca-key-ec-named c…
482 …-384" ./mkcert.sh genee server.example ee-key-ec-named-named ee-cert-ec-sha3-384 ca-key-ec-named c…
[all …]
/openssl/providers/implementations/encode_decode/
H A Dencode_key2any.c1323 MAKE_ENCODER(ec, ec, EVP_PKEY_EC, type_specific_no_pub, der);
1342 MAKE_ENCODER(ec, ec, EVP_PKEY_EC, type_specific_no_pub, pem);
1391 MAKE_ENCODER(ec, ec, EVP_PKEY_EC, EncryptedPrivateKeyInfo, der);
1393 MAKE_ENCODER(ec, ec, EVP_PKEY_EC, PrivateKeyInfo, der);
1394 MAKE_ENCODER(ec, ec, EVP_PKEY_EC, PrivateKeyInfo, pem);
1395 MAKE_ENCODER(ec, ec, EVP_PKEY_EC, SubjectPublicKeyInfo, der);
1396 MAKE_ENCODER(ec, ec, EVP_PKEY_EC, SubjectPublicKeyInfo, pem);
1454 MAKE_ENCODER(ec, ec, EVP_PKEY_EC, EC, der);
1455 MAKE_ENCODER(ec, ec, EVP_PKEY_EC, EC, pem);
1474 MAKE_ENCODER(ec, ec, EVP_PKEY_EC, X9_62, der);
[all …]
/openssl/include/crypto/
H A Dec.h75 int ossl_ec_group_fromdata(EC_KEY *ec, const OSSL_PARAM params[]);
79 int ossl_ec_key_otherparams_fromdata(EC_KEY *ec, const OSSL_PARAM params[]);
80 int ossl_ec_key_is_foreign(const EC_KEY *ec);
89 int ossl_ec_set_ecdh_cofactor_mode(EC_KEY *ec, int mode);
97 int ossl_ec_set_check_group_type_from_name(EC_KEY *ec, const char *name);
/openssl/providers/common/include/prov/
H A Dder_ecx.h.in22 int ossl_DER_w_algorithmIdentifier_ED25519(WPACKET *pkt, int cont, ECX_KEY *ec);
23 int ossl_DER_w_algorithmIdentifier_ED448(WPACKET *pkt, int cont, ECX_KEY *ec);
24 int ossl_DER_w_algorithmIdentifier_X25519(WPACKET *pkt, int cont, ECX_KEY *ec);
25 int ossl_DER_w_algorithmIdentifier_X448(WPACKET *pkt, int cont, ECX_KEY *ec);
H A Dder_sm2.h.in12 #include "crypto/ec.h"
23 int ossl_DER_w_algorithmIdentifier_SM2(WPACKET *pkt, int cont, EC_KEY *ec);
26 EC_KEY *ec, int mdnid);
H A Dder_ec.h.in12 #include "crypto/ec.h"
23 int ossl_DER_w_algorithmIdentifier_EC(WPACKET *pkt, int cont, EC_KEY *ec);
26 EC_KEY *ec, int mdnid);
/openssl/crypto/asn1/
H A Dd2i_pu.c76 ret->pkey.ec = copy->pkey.ec; in d2i_PublicKey()
77 copy->pkey.ec = NULL; in d2i_PublicKey()
79 if (!o2i_ECPublicKey(&ret->pkey.ec, pp, length)) { in d2i_PublicKey()
/openssl/doc/man1/
H A Dopenssl-ec.pod.in10 openssl-ec - EC key processing
14 B<openssl> B<ec>
38 The L<openssl-ec(1)> command processes EC keys. They can be converted between
132 Possible value are: B<named_curve>, i.e. the ec parameters are
133 specified by an OID, or B<explicit> where the ec parameters are
163 openssl ec -in key.pem -des3 -out keyout.pem
167 openssl ec -in key.pem -outform DER -out keyout.der
171 openssl ec -in key.pem -text -noout
175 openssl ec -in key.pem -pubout -out pubkey.pem
179 openssl ec -in key.pem -param_enc explicit -out keyout.pem
[all …]

Completed in 102 milliseconds

12345