Searched refs:gen_ctx (Results 1 – 3 of 3) sorted by relevance
/openssl/test/ |
H A D | evp_libctx_test.c | 116 EVP_PKEY_CTX *gen_ctx = NULL; in test_dsa_param_keygen() local 158 if (!TEST_ptr(gen_ctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey_parm, NULL)) in test_dsa_param_keygen() 159 || !TEST_int_gt(EVP_PKEY_keygen_init(gen_ctx), 0) in test_dsa_param_keygen() 160 || !TEST_int_eq(EVP_PKEY_keygen(gen_ctx, &pkey), expected)) in test_dsa_param_keygen() 173 EVP_PKEY_CTX_free(gen_ctx); in test_dsa_param_keygen() 188 EVP_PKEY_CTX *gen_ctx = NULL; in do_dh_param_keygen() local 221 if (!TEST_ptr(gen_ctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey_parm, NULL)) in do_dh_param_keygen() 222 || !TEST_int_gt(EVP_PKEY_keygen_init(gen_ctx), 0) in do_dh_param_keygen() 223 || !TEST_int_eq(EVP_PKEY_keygen(gen_ctx, &pkey), expected)) in do_dh_param_keygen() 236 EVP_PKEY_CTX_free(gen_ctx); in do_dh_param_keygen()
|
H A 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()
|
H A D | evp_extra_test2.c | 1034 EVP_PKEY_CTX *gen_ctx = NULL, *check_ctx = NULL; in do_check_params() local 1038 ret = TEST_ptr(gen_ctx = EVP_PKEY_CTX_new_from_name(mainctx, "DSA", NULL)) in do_check_params() 1039 && TEST_int_eq(EVP_PKEY_fromdata_init(gen_ctx), 1) in do_check_params() 1040 && TEST_int_eq(EVP_PKEY_fromdata(gen_ctx, &pkey, in do_check_params() 1046 EVP_PKEY_CTX_free(gen_ctx); in do_check_params()
|
Completed in 18 milliseconds