Lines Matching defs:cipher
1183 * n = 0 => test using legacy cipher
1184 * n = 1 => test using fetched cipher
2837 EVP_CIPHER *cipher = NULL;
2854 if (!TEST_ptr(cipher = EVP_CIPHER_fetch(testctx, "ChaCha20-Poly1305", testpropq))
2856 || !TEST_true(EVP_EncryptInit_ex(ctx, cipher, NULL,
2874 if (!TEST_true(EVP_DecryptInit_ex(ctx, cipher, NULL, key, iv))
2896 EVP_CIPHER_free(cipher);
3380 EVP_CIPHER *cipher = NULL;
3385 if (!TEST_ptr(cipher = EVP_CIPHER_fetch(testctx, algos[idx], testpropq))
3386 || !TEST_int_eq(EVP_CIPHER_get_key_length(cipher), 16)
3387 || !TEST_int_eq(EVP_CIPHER_get_iv_length(cipher), ivlen[idx]))
3392 EVP_CIPHER_free(cipher);
3569 const char *cipher;
3647 * Test step-wise cipher initialization via EVP_CipherInit_ex where the
3668 if (!TEST_ptr(type = EVP_CIPHER_fetch(testctx, t->cipher, testpropq))) {
3755 * Test a reset of a cipher via EVP_CipherInit_ex after the cipher has already
3822 const char *cipher;
3885 if ((type = EVP_CIPHER_fetch(testctx, t->cipher, testpropq)) == NULL) {
3886 TEST_info("cipher %s not supported, skipping", t->cipher);
4474 * Initing our custom cipher and then initing another cipher
4476 * cipher being called.