Lines Matching defs:cipher
519 const EVP_CIPHER *cipher;
550 const EVP_CIPHER *cipher;
562 if ((cipher = fetched_cipher = EVP_CIPHER_fetch(libctx, alg, NULL)) == NULL
563 && (cipher = EVP_get_cipherbyname(alg)) == NULL) {
564 /* a stitched cipher might not be available */
579 cdat->cipher = cipher;
582 m = EVP_CIPHER_get_mode(cipher);
583 if (EVP_CIPHER_get_flags(cipher) & EVP_CIPH_FLAG_AEAD_CIPHER)
740 if (!EVP_CipherInit_ex(ctx_base, expected->cipher, NULL, NULL, NULL, enc)) {
819 || ((EVP_CIPHER_get_flags(expected->cipher) & EVP_CIPH_CUSTOM_IV) == 0
827 /* Test that the cipher dup functions correctly if it is supported */
961 && (EVP_CIPHER_is_a(expected->cipher, "AES-128-CBC-HMAC-SHA1")
962 || EVP_CIPHER_is_a(expected->cipher, "AES-256-CBC-HMAC-SHA1"))) {
995 || ((EVP_CIPHER_get_flags(expected->cipher) & EVP_CIPH_CUSTOM_IV) == 0
1023 if (!cdat->iv && EVP_CIPHER_get_iv_length(cdat->cipher)) {
1025 if (EVP_CIPHER_get_mode(cdat->cipher) != EVP_CIPH_WRAP_MODE) {
1079 && EVP_CIPHER_get_mode(cdat->cipher) == EVP_CIPH_STREAM_CIPHER)
1080 || ((EVP_CIPHER_get_flags(cdat->cipher) & EVP_CIPH_FLAG_CTS) != 0)
1081 || EVP_CIPHER_get_mode(cdat->cipher) == EVP_CIPH_SIV_MODE
1082 || EVP_CIPHER_get_mode(cdat->cipher) == EVP_CIPH_XTS_MODE
1083 || EVP_CIPHER_get_mode(cdat->cipher) == EVP_CIPH_WRAP_MODE)
1303 EVP_CIPHER *cipher = NULL;
1333 if (!TEST_ptr(cipher = EVP_CIPHER_fetch(libctx, expected->alg, NULL))) {
1339 cipher);
1397 EVP_CIPHER_free(cipher);
1430 * The underlying algorithm may be a cipher or a digest.
2415 char *cipher;
2467 OPENSSL_free(rdata->cipher);
2531 return TEST_ptr(rdata->cipher = OPENSSL_strdup(value));
2567 if (expected->cipher != NULL)
2569 expected->cipher, 0);
2758 && (strcmp(name, "cipher") == 0