Lines Matching refs:key_ctx
3282 EVP_PKEY_CTX *key_ctx = NULL; in test_RSA_OAEP_set_get_params() local
3288 || !TEST_ptr(key_ctx = EVP_PKEY_CTX_new_from_pkey(0, key, 0))) in test_RSA_OAEP_set_get_params()
3302 if (!TEST_int_gt(EVP_PKEY_encrypt_init_ex(key_ctx, params),0)) in test_RSA_OAEP_set_get_params()
3316 if (!TEST_true(EVP_PKEY_CTX_get_params(key_ctx, params))) in test_RSA_OAEP_set_get_params()
3328 EVP_PKEY_CTX_free(key_ctx); in test_RSA_OAEP_set_get_params()
3338 EVP_PKEY_CTX *key_ctx = NULL; in test_RSA_OAEP_set_null_label() local
3341 || !TEST_ptr(key_ctx = EVP_PKEY_CTX_new_from_pkey(testctx, key, NULL)) in test_RSA_OAEP_set_null_label()
3342 || !TEST_true(EVP_PKEY_encrypt_init(key_ctx))) in test_RSA_OAEP_set_null_label()
3345 if (!TEST_true(EVP_PKEY_CTX_set_rsa_padding(key_ctx, RSA_PKCS1_OAEP_PADDING))) in test_RSA_OAEP_set_null_label()
3348 if (!TEST_true(EVP_PKEY_CTX_set0_rsa_oaep_label(key_ctx, OPENSSL_strdup("foo"), 0))) in test_RSA_OAEP_set_null_label()
3351 if (!TEST_true(EVP_PKEY_CTX_set0_rsa_oaep_label(key_ctx, NULL, 0))) in test_RSA_OAEP_set_null_label()
3358 EVP_PKEY_CTX_free(key_ctx); in test_RSA_OAEP_set_null_label()