Lines Matching defs:cipher
216 CMS_ContentInfo *CMS_EnvelopedData_create_ex(const EVP_CIPHER *cipher,
230 if (!ossl_cms_EncryptedContent_init(env->encryptedContentInfo, cipher, NULL,
240 CMS_ContentInfo *CMS_EnvelopedData_create(const EVP_CIPHER *cipher)
242 return CMS_EnvelopedData_create_ex(cipher, NULL, NULL);
246 CMS_AuthEnvelopedData_create_ex(const EVP_CIPHER *cipher, OSSL_LIB_CTX *libctx,
259 cipher, NULL, 0,
270 CMS_ContentInfo *CMS_AuthEnvelopedData_create(const EVP_CIPHER *cipher)
272 return CMS_AuthEnvelopedData_create_ex(cipher, NULL, NULL);
525 const EVP_CIPHER *cipher = NULL;
550 cipher = fetched_cipher;
552 cipher = EVP_get_cipherbyobj(calg->algorithm);
553 if (cipher == NULL) {
560 fixlen = EVP_CIPHER_get_key_length(cipher);
826 EVP_CIPHER *cipher = NULL;
842 cipher = cms_get_key_wrap_cipher(kekri->keylen, cms_ctx);
843 if (cipher == NULL) {
862 if (!EVP_EncryptInit_ex(ctx, cipher, NULL, kekri->key, NULL)
879 EVP_CIPHER_free(cipher);
897 EVP_CIPHER *cipher = NULL;
926 cipher = cms_get_key_wrap_cipher(kekri->keylen, cms_ctx);
927 if (cipher == NULL) {
944 if (!EVP_DecryptInit_ex(ctx, cipher, NULL, kekri->key, NULL)
961 EVP_CIPHER_free(cipher);
1087 ec->cipher = NULL;
1109 * If the selected cipher supports unprotected attributes,
1161 if (cms->d.envelopedData->encryptedContentInfo->cipher != NULL) {
1162 /* If cipher is set it's encryption */
1166 /* If cipher is not set it's decryption */
1181 if (ec->cipher == NULL) {
1187 /* If error or no cipher end of processing */
1188 if (ret == NULL || ec->cipher == NULL)
1229 * If the selected cipher supports unprotected attributes,