/third_party/openssl/crypto/cms/ |
D | cms_pwri.c | 54 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()
|
D | cms_kari.c | 173 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()
|
D | cms_enc.c | 25 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
|
D | cms_local.h | 104 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
|
D | cms_env.c | 181 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()
|
D | cms_sd.c | 331 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()
|
D | cms_ess.c | 225 ossl_cms_ctx_get0_libctx(si->cms_ctx), in cms_msgSigDigest() 226 ossl_cms_ctx_get0_propq(si->cms_ctx))) in cms_msgSigDigest()
|
D | cms_smime.c | 265 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/ |
D | cms_pwri.c | 54 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()
|
D | cms_kari.c | 173 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()
|
D | cms_enc.c | 26 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
|
D | cms_local.h | 104 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
|
D | cms_env.c | 200 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()
|
D | cms_sd.c | 331 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()
|
D | cms_ess.c | 225 ossl_cms_ctx_get0_libctx(si->cms_ctx), in cms_msgSigDigest() 226 ossl_cms_ctx_get0_propq(si->cms_ctx))) in cms_msgSigDigest()
|
D | cms_smime.c | 265 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()
|