Lines Matching refs:ctx2
2724 EVP_PKEY_CTX *ctx2 = NULL; in test_EVP_PKEY_check() local
2754 ctx2 = EVP_PKEY_CTX_new_id(0xdefaced, NULL); in test_EVP_PKEY_check()
2757 ctx2->pkey = pkey; in test_EVP_PKEY_check()
2759 if (!TEST_int_eq(EVP_PKEY_check(ctx2), 0xbeef)) in test_EVP_PKEY_check()
2762 if (!TEST_int_eq(EVP_PKEY_public_check(ctx2), 0xbeef)) in test_EVP_PKEY_check()
2765 if (!TEST_int_eq(EVP_PKEY_param_check(ctx2), 0xbeef)) in test_EVP_PKEY_check()
2774 EVP_PKEY_CTX_free(ctx2); in test_EVP_PKEY_check()
5437 EVP_CIPHER_CTX *ctx = NULL, *ctx2 = NULL; in test_cipher_with_engine() local
5450 || !TEST_ptr(ctx2 = EVP_CIPHER_CTX_new())) in test_cipher_with_engine()
5457 if (!TEST_true(EVP_CIPHER_CTX_copy(ctx2, ctx))) in test_cipher_with_engine()
5460 if (!TEST_true(EVP_EncryptUpdate(ctx2, buf, &len, msg, sizeof(msg))) in test_cipher_with_engine()
5461 || !TEST_true(EVP_EncryptFinal_ex(ctx2, buf + len, &len))) in test_cipher_with_engine()
5467 EVP_CIPHER_CTX_free(ctx2); in test_cipher_with_engine()