Searched refs:gen_ctx (Results 1 – 3 of 3) sorted by relevance
/third_party/openssl/test/ |
D | dsatest.c | 310 EVP_PKEY_CTX *gen_ctx = NULL; in test_dsa_default_paramgen_validate() local 314 ret = TEST_ptr(gen_ctx = EVP_PKEY_CTX_new_from_name(NULL, "DSA", NULL)) in test_dsa_default_paramgen_validate() 315 && TEST_int_gt(EVP_PKEY_paramgen_init(gen_ctx), 0) in test_dsa_default_paramgen_validate() 317 || TEST_true(EVP_PKEY_CTX_set_dsa_paramgen_bits(gen_ctx, 512))) in test_dsa_default_paramgen_validate() 318 && TEST_int_gt(EVP_PKEY_generate(gen_ctx, ¶ms), 0) in test_dsa_default_paramgen_validate() 324 EVP_PKEY_CTX_free(gen_ctx); in test_dsa_default_paramgen_validate()
|
D | evp_libctx_test.c | 84 EVP_PKEY_CTX *gen_ctx = NULL; in test_dsa_param_keygen() local 126 if (!TEST_ptr(gen_ctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey_parm, NULL)) in test_dsa_param_keygen() 127 || !TEST_int_gt(EVP_PKEY_keygen_init(gen_ctx), 0) in test_dsa_param_keygen() 128 || !TEST_int_eq(EVP_PKEY_keygen(gen_ctx, &pkey), expected)) in test_dsa_param_keygen() 141 EVP_PKEY_CTX_free(gen_ctx); in test_dsa_param_keygen() 156 EVP_PKEY_CTX *gen_ctx = NULL; in do_dh_param_keygen() local 189 if (!TEST_ptr(gen_ctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey_parm, NULL)) in do_dh_param_keygen() 190 || !TEST_int_gt(EVP_PKEY_keygen_init(gen_ctx), 0) in do_dh_param_keygen() 191 || !TEST_int_eq(EVP_PKEY_keygen(gen_ctx, &pkey), expected)) in do_dh_param_keygen() 204 EVP_PKEY_CTX_free(gen_ctx); in do_dh_param_keygen()
|
D | evp_extra_test2.c | 798 EVP_PKEY_CTX *gen_ctx = NULL, *check_ctx = NULL; in do_check_params() local 802 ret = TEST_ptr(gen_ctx = EVP_PKEY_CTX_new_from_name(mainctx, "DSA", NULL)) in do_check_params() 803 && TEST_int_eq(EVP_PKEY_fromdata_init(gen_ctx), 1) in do_check_params() 804 && TEST_int_eq(EVP_PKEY_fromdata(gen_ctx, &pkey, in do_check_params() 810 EVP_PKEY_CTX_free(gen_ctx); in do_check_params()
|