Lines Matching refs:cipher
240 const EVP_CIPHER *cipher; in PKCS7_dataInit() local
286 evp_cipher = p7->d.signed_and_enveloped->enc_data->cipher; in PKCS7_dataInit()
295 evp_cipher = p7->d.enveloped->enc_data->cipher; in PKCS7_dataInit()
343 cipher = fetched_cipher; in PKCS7_dataInit()
345 cipher = evp_cipher; in PKCS7_dataInit()
347 if (EVP_CipherInit_ex(ctx, cipher, NULL, NULL, NULL, 1) <= 0) in PKCS7_dataInit()
448 const EVP_CIPHER *cipher = NULL; in PKCS7_dataDecode() local
505 cipher = evp_cipher; in PKCS7_dataDecode()
507 cipher = EVP_get_cipherbyname(name); in PKCS7_dataDecode()
509 if (cipher == NULL) { in PKCS7_dataDecode()
526 cipher = evp_cipher; in PKCS7_dataDecode()
528 cipher = EVP_get_cipherbyname(name); in PKCS7_dataDecode()
530 if (cipher == NULL) { in PKCS7_dataDecode()
587 if (cipher != NULL) { in PKCS7_dataDecode()
627 EVP_CIPHER_get_key_length(cipher)) < 0) in PKCS7_dataDecode()
641 if (EVP_CipherInit_ex(evp_ctx, cipher, NULL, NULL, NULL, 0) <= 0) in PKCS7_dataDecode()