Lines Matching refs:cipher

246 CMS_ContentInfo *CMS_EnvelopedData_create_ex(const EVP_CIPHER *cipher,  in CMS_EnvelopedData_create_ex()  argument
260 if (!ossl_cms_EncryptedContent_init(env->encryptedContentInfo, cipher, NULL, in CMS_EnvelopedData_create_ex()
270 CMS_ContentInfo *CMS_EnvelopedData_create(const EVP_CIPHER *cipher) in CMS_EnvelopedData_create() argument
272 return CMS_EnvelopedData_create_ex(cipher, NULL, NULL); in CMS_EnvelopedData_create()
316 CMS_AuthEnvelopedData_create_ex(const EVP_CIPHER *cipher, OSSL_LIB_CTX *libctx, in CMS_AuthEnvelopedData_create_ex() argument
329 cipher, NULL, 0, in CMS_AuthEnvelopedData_create_ex()
340 CMS_ContentInfo *CMS_AuthEnvelopedData_create(const EVP_CIPHER *cipher) in CMS_AuthEnvelopedData_create() argument
342 return CMS_AuthEnvelopedData_create_ex(cipher, NULL, NULL); in CMS_AuthEnvelopedData_create()
603 const EVP_CIPHER *cipher = NULL; in cms_RecipientInfo_ktri_decrypt() local
628 cipher = fetched_cipher; in cms_RecipientInfo_ktri_decrypt()
630 cipher = EVP_get_cipherbyobj(calg->algorithm); in cms_RecipientInfo_ktri_decrypt()
631 if (cipher == NULL) { in cms_RecipientInfo_ktri_decrypt()
638 fixlen = EVP_CIPHER_get_key_length(cipher); in cms_RecipientInfo_ktri_decrypt()
902 EVP_CIPHER *cipher = NULL; in cms_RecipientInfo_kekri_encrypt() local
918 cipher = cms_get_key_wrap_cipher(kekri->keylen, cms_ctx); in cms_RecipientInfo_kekri_encrypt()
919 if (cipher == NULL) { in cms_RecipientInfo_kekri_encrypt()
936 if (!EVP_EncryptInit_ex(ctx, cipher, NULL, kekri->key, NULL) in cms_RecipientInfo_kekri_encrypt()
953 EVP_CIPHER_free(cipher); in cms_RecipientInfo_kekri_encrypt()
971 EVP_CIPHER *cipher = NULL; in cms_RecipientInfo_kekri_decrypt() local
1000 cipher = cms_get_key_wrap_cipher(kekri->keylen, cms_ctx); in cms_RecipientInfo_kekri_decrypt()
1001 if (cipher == NULL) { in cms_RecipientInfo_kekri_decrypt()
1016 if (!EVP_DecryptInit_ex(ctx, cipher, NULL, kekri->key, NULL) in cms_RecipientInfo_kekri_decrypt()
1033 EVP_CIPHER_free(cipher); in cms_RecipientInfo_kekri_decrypt()
1166 ec->cipher = NULL; in cms_env_clear_ec()
1240 if (cms->d.envelopedData->encryptedContentInfo->cipher != NULL) { in ossl_cms_EnvelopedData_init_bio()
1260 if (ec->cipher == NULL) { in ossl_cms_AuthEnvelopedData_init_bio()
1267 if (ret == NULL || ec->cipher == NULL) in ossl_cms_AuthEnvelopedData_init_bio()
1448 const EVP_CIPHER *cipher) in ossl_cms_RecipientInfo_wrap_init() argument
1476 if (cipher == NULL) in ossl_cms_RecipientInfo_wrap_init()
1478 keylen = EVP_CIPHER_get_key_length(cipher); in ossl_cms_RecipientInfo_wrap_init()
1483 if ((EVP_CIPHER_get_flags(cipher) & EVP_CIPH_FLAG_GET_WRAP_CIPHER) != 0) { in ossl_cms_RecipientInfo_wrap_init()
1484 ret = EVP_CIPHER_meth_get_ctrl(cipher)(NULL, EVP_CTRL_GET_WRAP_CIPHER, in ossl_cms_RecipientInfo_wrap_init()
1502 if (EVP_CIPHER_get_type(cipher) == NID_des_ede3_cbc) in ossl_cms_RecipientInfo_wrap_init()