Lines Matching defs:cipher
38 static int do_bio_cipher(const EVP_CIPHER* cipher, const unsigned char* key,
56 if (!TEST_true(BIO_set_cipher(b, cipher, key, iv, ENCRYPT)))
70 if (!TEST_true(BIO_set_cipher(b, cipher, key, iv, ENCRYPT))) {
102 if (!TEST_true(BIO_set_cipher(b, cipher, key, iv, ENCRYPT))) {
128 if (!TEST_true(BIO_set_cipher(b, cipher, key, iv, DECRYPT)))
148 if (!TEST_true(BIO_set_cipher(b, cipher, key, iv, DECRYPT))) {
180 if (!TEST_true(BIO_set_cipher(b, cipher, key, iv, DECRYPT))) {
207 static int do_test_bio_cipher(const EVP_CIPHER* cipher, int idx)
212 return do_bio_cipher(cipher, KEY, NULL);
214 return do_bio_cipher(cipher, KEY, IV);