Lines Matching refs:key_ctx

352     EVP_PKEY_CTX *ctx = NULL, *key_ctx = NULL;  in test_fromdata_rsa()  local
400 EVP_PKEY_CTX_free(key_ctx); in test_fromdata_rsa()
401 if (!TEST_ptr(key_ctx = EVP_PKEY_CTX_new_from_pkey(NULL, pk, ""))) in test_fromdata_rsa()
404 if (!TEST_int_gt(EVP_PKEY_check(key_ctx), 0) in test_fromdata_rsa()
405 || !TEST_int_gt(EVP_PKEY_public_check(key_ctx), 0) in test_fromdata_rsa()
406 || !TEST_int_gt(EVP_PKEY_private_check(key_ctx), 0) in test_fromdata_rsa()
407 || !TEST_int_gt(EVP_PKEY_pairwise_check(key_ctx), 0)) in test_fromdata_rsa()
444 EVP_PKEY_CTX_free(key_ctx); in test_fromdata_rsa()
463 EVP_PKEY_CTX *ctx = NULL, *key_ctx = NULL; in do_fromdata_rsa_derive() local
502 EVP_PKEY_CTX_free(key_ctx); in do_fromdata_rsa_derive()
503 if (!TEST_ptr(key_ctx = EVP_PKEY_CTX_new_from_pkey(NULL, pk, ""))) in do_fromdata_rsa_derive()
506 if (!TEST_int_gt(EVP_PKEY_check(key_ctx), 0) in do_fromdata_rsa_derive()
507 || !TEST_int_gt(EVP_PKEY_public_check(key_ctx), 0) in do_fromdata_rsa_derive()
508 || !TEST_int_gt(EVP_PKEY_private_check(key_ctx), 0) in do_fromdata_rsa_derive()
509 || !TEST_int_gt(EVP_PKEY_pairwise_check(key_ctx), 0)) in do_fromdata_rsa_derive()
536 EVP_PKEY_CTX_free(key_ctx); in do_fromdata_rsa_derive()
847 EVP_PKEY_CTX *ctx = NULL, *key_ctx = NULL; in test_evp_pkey_get_bn_param_large() local
879 || !TEST_ptr(key_ctx = EVP_PKEY_CTX_new_from_pkey(NULL, pk, "")) in test_evp_pkey_get_bn_param_large()
890 EVP_PKEY_CTX_free(key_ctx); in test_evp_pkey_get_bn_param_large()
903 EVP_PKEY_CTX *ctx = NULL, *key_ctx = NULL; in test_fromdata_dh_named_group() local
1063 if (!TEST_ptr(key_ctx = EVP_PKEY_CTX_new_from_pkey(NULL, pk, ""))) in test_fromdata_dh_named_group()
1066 if (!TEST_int_gt(EVP_PKEY_check(key_ctx), 0) in test_fromdata_dh_named_group()
1067 || !TEST_int_gt(EVP_PKEY_public_check(key_ctx), 0) in test_fromdata_dh_named_group()
1068 || !TEST_int_gt(EVP_PKEY_private_check(key_ctx), 0) in test_fromdata_dh_named_group()
1069 || !TEST_int_gt(EVP_PKEY_pairwise_check(key_ctx), 0)) in test_fromdata_dh_named_group()
1071 EVP_PKEY_CTX_free(key_ctx); in test_fromdata_dh_named_group()
1072 key_ctx = NULL; in test_fromdata_dh_named_group()
1106 EVP_PKEY_CTX_free(key_ctx); in test_fromdata_dh_named_group()
1117 EVP_PKEY_CTX *ctx = NULL, *key_ctx = NULL; in test_fromdata_dh_fips186_4() local
1247 if (!TEST_ptr(key_ctx = EVP_PKEY_CTX_new_from_pkey(NULL, pk, ""))) in test_fromdata_dh_fips186_4()
1250 if (!TEST_int_gt(EVP_PKEY_check(key_ctx), 0) in test_fromdata_dh_fips186_4()
1251 || !TEST_int_gt(EVP_PKEY_public_check(key_ctx), 0) in test_fromdata_dh_fips186_4()
1252 || !TEST_int_gt(EVP_PKEY_private_check(key_ctx), 0) in test_fromdata_dh_fips186_4()
1253 || !TEST_int_gt(EVP_PKEY_pairwise_check(key_ctx), 0)) in test_fromdata_dh_fips186_4()
1255 EVP_PKEY_CTX_free(key_ctx); in test_fromdata_dh_fips186_4()
1256 key_ctx = NULL; in test_fromdata_dh_fips186_4()
1283 EVP_PKEY_CTX_free(key_ctx); in test_fromdata_dh_fips186_4()
1850 EVP_PKEY_CTX *ctx = NULL, *key_ctx = NULL; in test_fromdata_dsa_fips186_4() local
2061 if (!TEST_ptr(key_ctx = EVP_PKEY_CTX_new_from_pkey(NULL, pk, ""))) in test_fromdata_dsa_fips186_4()
2064 if (!TEST_int_gt(EVP_PKEY_check(key_ctx), 0) in test_fromdata_dsa_fips186_4()
2065 || !TEST_int_gt(EVP_PKEY_public_check(key_ctx), 0) in test_fromdata_dsa_fips186_4()
2066 || !TEST_int_gt(EVP_PKEY_private_check(key_ctx), 0) in test_fromdata_dsa_fips186_4()
2067 || !TEST_int_gt(EVP_PKEY_pairwise_check(key_ctx), 0)) in test_fromdata_dsa_fips186_4()
2069 EVP_PKEY_CTX_free(key_ctx); in test_fromdata_dsa_fips186_4()
2070 key_ctx = NULL; in test_fromdata_dsa_fips186_4()
2110 EVP_PKEY_CTX_free(key_ctx); in test_fromdata_dsa_fips186_4()