Lines Matching refs:cipher
31 const EVP_CIPHER *cipher = NULL; in ossl_cms_EncryptedContent_init_bio() local
44 enc = ec->cipher ? 1 : 0; in ossl_cms_EncryptedContent_init_bio()
56 cipher = ec->cipher; in ossl_cms_EncryptedContent_init_bio()
61 ec->cipher = NULL; in ossl_cms_EncryptedContent_init_bio()
63 cipher = EVP_get_cipherbyobj(calg->algorithm); in ossl_cms_EncryptedContent_init_bio()
65 if (cipher != NULL) { in ossl_cms_EncryptedContent_init_bio()
66 fetched_ciph = EVP_CIPHER_fetch(libctx, EVP_CIPHER_get0_name(cipher), in ossl_cms_EncryptedContent_init_bio()
69 cipher = fetched_ciph; in ossl_cms_EncryptedContent_init_bio()
71 if (cipher == NULL) { in ossl_cms_EncryptedContent_init_bio()
78 if (EVP_CipherInit_ex(ctx, cipher, NULL, NULL, NULL, enc) <= 0) { in ossl_cms_EncryptedContent_init_bio()
106 if ((EVP_CIPHER_get_flags(cipher) & EVP_CIPH_FLAG_AEAD_CIPHER)) { in ossl_cms_EncryptedContent_init_bio()
172 if ((EVP_CIPHER_get_flags(cipher) & EVP_CIPH_FLAG_AEAD_CIPHER)) { in ossl_cms_EncryptedContent_init_bio()
206 const EVP_CIPHER *cipher, in ossl_cms_EncryptedContent_init() argument
210 ec->cipher = cipher; in ossl_cms_EncryptedContent_init()
217 if (cipher != NULL) in ossl_cms_EncryptedContent_init()
251 if (enc->encryptedContentInfo->cipher && enc->unprotectedAttrs) in ossl_cms_EncryptedData_init_bio()