Lines Matching defs:cipher
670 /* cipher encrypt/decrypt */
680 EVP_CIPHER *cipher = NULL;
685 || !TEST_ptr(cipher = EVP_CIPHER_fetch(libctx, alg, ""))
686 || !TEST_true(EVP_CipherInit_ex(ctx, cipher, NULL, key, iv, enc))
696 EVP_CIPHER_free(cipher);
727 EVP_CIPHER *cipher = NULL;
735 || !TEST_ptr(cipher = EVP_CIPHER_fetch(libctx, alg, ""))
736 || !TEST_true(EVP_CipherInit_ex(ctx, cipher, NULL, NULL, NULL, enc))
768 EVP_CIPHER_free(cipher);
777 /* The tag is on the end of the cipher text */
814 EVP_CIPHER *cipher = NULL;
822 || !TEST_ptr(cipher = EVP_CIPHER_fetch(libctx, alg, ""))
823 || !TEST_true(EVP_CipherInit_ex(ctx, cipher, NULL, NULL, NULL, enc))
864 EVP_CIPHER_free(cipher);
1342 (char *)tst->cipher, 0);
1392 EVP_CIPHER *cipher = NULL;
1413 if (!TEST_ptr(cipher = EVP_CIPHER_fetch(libctx, "AES-128-CFB1", "fips=yes")))
1417 if (!TEST_int_gt(EVP_CipherInit_ex(ctx, cipher, NULL, key, iv, 1), 0))
1432 EVP_CIPHER_free(cipher);