Lines Matching refs:genctx
121 EVP_PKEY_CTX *genctx = NULL; in test_ec_dhkem_derivekey_fail() local
132 if (!TEST_ptr(genctx = EVP_PKEY_CTX_new_from_name(libctx, "EC", NULL)) in test_ec_dhkem_derivekey_fail()
133 || !TEST_int_eq(EVP_PKEY_keygen_init(genctx), 1) in test_ec_dhkem_derivekey_fail()
134 || !TEST_int_eq(EVP_PKEY_CTX_set_params(genctx, params), 1) in test_ec_dhkem_derivekey_fail()
135 || !TEST_int_eq(EVP_PKEY_generate(genctx, &pkey),0)) in test_ec_dhkem_derivekey_fail()
144 if (!TEST_int_eq(EVP_PKEY_keygen_init(genctx), 1) in test_ec_dhkem_derivekey_fail()
145 || !TEST_int_eq(EVP_PKEY_CTX_set_params(genctx, params), 1) in test_ec_dhkem_derivekey_fail()
146 || !TEST_int_eq(EVP_PKEY_generate(genctx, &pkey), 0)) in test_ec_dhkem_derivekey_fail()
155 if (!TEST_int_eq(EVP_PKEY_CTX_set_params(genctx, params), 1) in test_ec_dhkem_derivekey_fail()
156 || !TEST_int_eq(EVP_PKEY_generate(genctx, &pkey), 0)) in test_ec_dhkem_derivekey_fail()
163 EVP_PKEY_CTX_free(genctx); in test_ec_dhkem_derivekey_fail()
470 EVP_PKEY_CTX *genctx = NULL; in test_ec_dhkem_derivekey() local
483 ret = TEST_ptr(genctx = EVP_PKEY_CTX_new_from_name(libctx, "EC", NULL)) in test_ec_dhkem_derivekey()
484 && TEST_int_eq(EVP_PKEY_keygen_init(genctx), 1) in test_ec_dhkem_derivekey()
485 && TEST_int_eq(EVP_PKEY_CTX_set_params(genctx, params), 1) in test_ec_dhkem_derivekey()
486 && TEST_int_eq(EVP_PKEY_generate(genctx, &pkey), 1) in test_ec_dhkem_derivekey()
499 EVP_PKEY_CTX_free(genctx); in test_ec_dhkem_derivekey()
710 EVP_PKEY_CTX *genctx; in test_ecx_dhkem_derivekey() local
736 ret = TEST_ptr(genctx = EVP_PKEY_CTX_new_from_name(libctx, t->curvename, NULL)) in test_ecx_dhkem_derivekey()
737 && TEST_int_eq(EVP_PKEY_keygen_init(genctx), 1) in test_ecx_dhkem_derivekey()
738 && TEST_int_eq(EVP_PKEY_CTX_set_params(genctx, params), 1) in test_ecx_dhkem_derivekey()
739 && TEST_int_eq(EVP_PKEY_keygen(genctx, &pkey), 1) in test_ecx_dhkem_derivekey()
750 EVP_PKEY_CTX_free(genctx); in test_ecx_dhkem_derivekey()