Home
last modified time | relevance | path

Searched refs:cms_ctx (Results 1 – 16 of 16) sorted by relevance

/third_party/openssl/crypto/cms/
Dcms_pwri.c54 const CMS_CTX *cms_ctx = ossl_cms_get0_cmsctx(cms); in CMS_add0_recipient_password() local
105 if (RAND_bytes_ex(ossl_cms_ctx_get0_libctx(cms_ctx), iv, ivlen, 0) <= 0) in CMS_add0_recipient_password()
138 pwri->cms_ctx = cms_ctx; in CMS_add0_recipient_password()
246 EVP_CIPHER_CTX *ctx, const CMS_CTX *cms_ctx) in kek_wrap_key() argument
274 && RAND_bytes_ex(ossl_cms_ctx_get0_libctx(cms_ctx), out + 4 + inlen, in kek_wrap_key()
302 const CMS_CTX *cms_ctx = ossl_cms_get0_cmsctx(cms); in ossl_cms_RecipientInfo_pwri_crypt() local
328 kekcipher = EVP_CIPHER_fetch(ossl_cms_ctx_get0_libctx(cms_ctx), name, in ossl_cms_RecipientInfo_pwri_crypt()
329 ossl_cms_ctx_get0_propq(cms_ctx)); in ossl_cms_RecipientInfo_pwri_crypt()
365 if (!kek_wrap_key(NULL, &keylen, ec->key, ec->keylen, kekctx, cms_ctx)) in ossl_cms_RecipientInfo_pwri_crypt()
373 if (!kek_wrap_key(key, &keylen, ec->key, ec->keylen, kekctx, cms_ctx)) in ossl_cms_RecipientInfo_pwri_crypt()
Dcms_kari.c173 pctx = EVP_PKEY_CTX_new_from_pkey(ossl_cms_ctx_get0_libctx(kari->cms_ctx), in CMS_RecipientInfo_kari_set0_pkey_and_peer()
175 ossl_cms_ctx_get0_propq(kari->cms_ctx)); in CMS_RecipientInfo_kari_set0_pkey_and_peer()
289 const CMS_CTX *ctx = kari->cms_ctx; in cms_kari_create_ephemeral_key()
321 const CMS_CTX *ctx = kari->cms_ctx; in cms_kari_set_originator_private_key()
356 kari->cms_ctx = ctx; in ossl_cms_RecipientInfo_kari_init()
416 const CMS_CTX *cms_ctx = kari->cms_ctx; in cms_wrap_init() local
464 fetched_kekcipher = EVP_CIPHER_fetch(ossl_cms_ctx_get0_libctx(cms_ctx), in cms_wrap_init()
466 ossl_cms_ctx_get0_propq(cms_ctx)); in cms_wrap_init()
Dcms_enc.c25 const CMS_CTX *cms_ctx) in ossl_cms_EncryptedContent_init_bio() argument
40 OSSL_LIB_CTX *libctx = ossl_cms_ctx_get0_libctx(cms_ctx); in ossl_cms_EncryptedContent_init_bio()
41 const char *propq = ossl_cms_ctx_get0_propq(cms_ctx); in ossl_cms_EncryptedContent_init_bio()
209 const CMS_CTX *cms_ctx) in ossl_cms_EncryptedContent_init() argument
Dcms_local.h104 const CMS_CTX *cms_ctx; member
167 const CMS_CTX *cms_ctx; member
180 const CMS_CTX *cms_ctx; member
226 const CMS_CTX *cms_ctx; member
243 const CMS_CTX *cms_ctx; member
Dcms_env.c181 ri->d.kari->cms_ctx = ctx; in ossl_cms_RecipientInfos_set_cmsctx()
184 ri->d.ktri->cms_ctx = ctx; in ossl_cms_RecipientInfos_set_cmsctx()
190 ri->d.kekri->cms_ctx = ctx; in ossl_cms_RecipientInfos_set_cmsctx()
193 ri->d.pwri->cms_ctx = ctx; in ossl_cms_RecipientInfos_set_cmsctx()
292 ktri->cms_ctx = ctx; in cms_RecipientInfo_ktri_init()
829 const CMS_CTX *cms_ctx = ossl_cms_get0_cmsctx(cms); in cms_RecipientInfo_kekri_encrypt() local
842 cipher = cms_get_key_wrap_cipher(kekri->keylen, cms_ctx); in cms_RecipientInfo_kekri_encrypt()
900 const CMS_CTX *cms_ctx = ossl_cms_get0_cmsctx(cms); in cms_RecipientInfo_kekri_decrypt() local
926 cipher = cms_get_key_wrap_cipher(kekri->keylen, cms_ctx); in cms_RecipientInfo_kekri_decrypt()
Dcms_sd.c331 si->cms_ctx = ctx; in CMS_add1_signer()
510 si->cms_ctx = ctx; in ossl_cms_SignerInfos_set_cmsctx()
784 const CMS_CTX *ctx = si->cms_ctx; in CMS_SignerInfo_sign()
846 const CMS_CTX *ctx = si->cms_ctx; in CMS_SignerInfo_verify()
986 const CMS_CTX *ctx = si->cms_ctx; in CMS_SignerInfo_verify_content()
Dcms_ess.c225 ossl_cms_ctx_get0_libctx(si->cms_ctx), in cms_msgSigDigest()
226 ossl_cms_ctx_get0_propq(si->cms_ctx))) in cms_msgSigDigest()
Dcms_smime.c265 const CMS_CTX *cms_ctx) in cms_signerinfo_verify_cert() argument
271 ctx = X509_STORE_CTX_new_ex(ossl_cms_ctx_get0_libctx(cms_ctx), in cms_signerinfo_verify_cert()
272 ossl_cms_ctx_get0_propq(cms_ctx)); in cms_signerinfo_verify_cert()
564 const CMS_CTX *ctx = si->cms_ctx; in CMS_sign_receipt()
/third_party/node/deps/openssl/openssl/crypto/cms/
Dcms_pwri.c54 const CMS_CTX *cms_ctx = ossl_cms_get0_cmsctx(cms); in CMS_add0_recipient_password() local
105 if (RAND_bytes_ex(ossl_cms_ctx_get0_libctx(cms_ctx), iv, ivlen, 0) <= 0) in CMS_add0_recipient_password()
138 pwri->cms_ctx = cms_ctx; in CMS_add0_recipient_password()
246 EVP_CIPHER_CTX *ctx, const CMS_CTX *cms_ctx) in kek_wrap_key() argument
274 && RAND_bytes_ex(ossl_cms_ctx_get0_libctx(cms_ctx), out + 4 + inlen, in kek_wrap_key()
302 const CMS_CTX *cms_ctx = ossl_cms_get0_cmsctx(cms); in ossl_cms_RecipientInfo_pwri_crypt() local
328 kekcipher = EVP_CIPHER_fetch(ossl_cms_ctx_get0_libctx(cms_ctx), name, in ossl_cms_RecipientInfo_pwri_crypt()
329 ossl_cms_ctx_get0_propq(cms_ctx)); in ossl_cms_RecipientInfo_pwri_crypt()
365 if (!kek_wrap_key(NULL, &keylen, ec->key, ec->keylen, kekctx, cms_ctx)) in ossl_cms_RecipientInfo_pwri_crypt()
373 if (!kek_wrap_key(key, &keylen, ec->key, ec->keylen, kekctx, cms_ctx)) in ossl_cms_RecipientInfo_pwri_crypt()
Dcms_kari.c173 pctx = EVP_PKEY_CTX_new_from_pkey(ossl_cms_ctx_get0_libctx(kari->cms_ctx), in CMS_RecipientInfo_kari_set0_pkey_and_peer()
175 ossl_cms_ctx_get0_propq(kari->cms_ctx)); in CMS_RecipientInfo_kari_set0_pkey_and_peer()
289 const CMS_CTX *ctx = kari->cms_ctx; in cms_kari_create_ephemeral_key()
321 const CMS_CTX *ctx = kari->cms_ctx; in cms_kari_set_originator_private_key()
356 kari->cms_ctx = ctx; in ossl_cms_RecipientInfo_kari_init()
416 const CMS_CTX *cms_ctx = kari->cms_ctx; in cms_wrap_init() local
464 fetched_kekcipher = EVP_CIPHER_fetch(ossl_cms_ctx_get0_libctx(cms_ctx), in cms_wrap_init()
466 ossl_cms_ctx_get0_propq(cms_ctx)); in cms_wrap_init()
Dcms_enc.c26 const CMS_CTX *cms_ctx) in ossl_cms_EncryptedContent_init_bio() argument
41 OSSL_LIB_CTX *libctx = ossl_cms_ctx_get0_libctx(cms_ctx); in ossl_cms_EncryptedContent_init_bio()
42 const char *propq = ossl_cms_ctx_get0_propq(cms_ctx); in ossl_cms_EncryptedContent_init_bio()
210 const CMS_CTX *cms_ctx) in ossl_cms_EncryptedContent_init() argument
Dcms_local.h104 const CMS_CTX *cms_ctx; member
167 const CMS_CTX *cms_ctx; member
180 const CMS_CTX *cms_ctx; member
226 const CMS_CTX *cms_ctx; member
243 const CMS_CTX *cms_ctx; member
Dcms_env.c200 ri->d.kari->cms_ctx = ctx; in ossl_cms_RecipientInfos_set_cmsctx()
203 ri->d.ktri->cms_ctx = ctx; in ossl_cms_RecipientInfos_set_cmsctx()
209 ri->d.kekri->cms_ctx = ctx; in ossl_cms_RecipientInfos_set_cmsctx()
212 ri->d.pwri->cms_ctx = ctx; in ossl_cms_RecipientInfos_set_cmsctx()
311 ktri->cms_ctx = ctx; in cms_RecipientInfo_ktri_init()
848 const CMS_CTX *cms_ctx = ossl_cms_get0_cmsctx(cms); in cms_RecipientInfo_kekri_encrypt() local
861 cipher = cms_get_key_wrap_cipher(kekri->keylen, cms_ctx); in cms_RecipientInfo_kekri_encrypt()
919 const CMS_CTX *cms_ctx = ossl_cms_get0_cmsctx(cms); in cms_RecipientInfo_kekri_decrypt() local
945 cipher = cms_get_key_wrap_cipher(kekri->keylen, cms_ctx); in cms_RecipientInfo_kekri_decrypt()
Dcms_sd.c331 si->cms_ctx = ctx; in CMS_add1_signer()
518 si->cms_ctx = ctx; in ossl_cms_SignerInfos_set_cmsctx()
792 const CMS_CTX *ctx = si->cms_ctx; in CMS_SignerInfo_sign()
854 const CMS_CTX *ctx = si->cms_ctx; in CMS_SignerInfo_verify()
994 const CMS_CTX *ctx = si->cms_ctx; in CMS_SignerInfo_verify_content()
Dcms_ess.c225 ossl_cms_ctx_get0_libctx(si->cms_ctx), in cms_msgSigDigest()
226 ossl_cms_ctx_get0_propq(si->cms_ctx))) in cms_msgSigDigest()
Dcms_smime.c265 const CMS_CTX *cms_ctx) in cms_signerinfo_verify_cert() argument
271 ctx = X509_STORE_CTX_new_ex(ossl_cms_ctx_get0_libctx(cms_ctx), in cms_signerinfo_verify_cert()
272 ossl_cms_ctx_get0_propq(cms_ctx)); in cms_signerinfo_verify_cert()
564 const CMS_CTX *ctx = si->cms_ctx; in CMS_sign_receipt()