Lines Matching refs:paramgen_ctx
523 EVP_PKEY_CTX *paramgen_ctx = NULL; in dsa_paramgen() local
526 if (!TEST_ptr(paramgen_ctx = EVP_PKEY_CTX_new_from_name(libctx, "DSA", NULL)) in dsa_paramgen()
527 || !TEST_int_gt(EVP_PKEY_paramgen_init(paramgen_ctx), 0) in dsa_paramgen()
528 || !TEST_true(EVP_PKEY_CTX_set_dsa_paramgen_bits(paramgen_ctx, L)) in dsa_paramgen()
529 || !TEST_true(EVP_PKEY_CTX_set_dsa_paramgen_q_bits(paramgen_ctx, N)) in dsa_paramgen()
530 || !TEST_true(EVP_PKEY_paramgen(paramgen_ctx, ¶m_key))) in dsa_paramgen()
532 EVP_PKEY_CTX_free(paramgen_ctx); in dsa_paramgen()
556 EVP_PKEY_CTX *paramgen_ctx = NULL, *keygen_ctx = NULL; in dsa_keygen_test() local
591 EVP_PKEY_CTX_free(paramgen_ctx); in dsa_keygen_test()
598 EVP_PKEY_CTX *paramgen_ctx = NULL; in dsa_paramgen_test() local
604 if (!TEST_ptr(paramgen_ctx = EVP_PKEY_CTX_new_from_name(libctx, "DSA", NULL)) in dsa_paramgen_test()
605 || !TEST_int_gt(EVP_PKEY_paramgen_init(paramgen_ctx), 0) in dsa_paramgen_test()
606 || !TEST_true(EVP_PKEY_CTX_set_dsa_paramgen_bits(paramgen_ctx, tst->L)) in dsa_paramgen_test()
607 || !TEST_true(EVP_PKEY_CTX_set_dsa_paramgen_q_bits(paramgen_ctx, in dsa_paramgen_test()
612 if (!TEST_false(EVP_PKEY_paramgen(paramgen_ctx, ¶m_key))) in dsa_paramgen_test()
615 if (!TEST_true(EVP_PKEY_paramgen(paramgen_ctx, ¶m_key)) in dsa_paramgen_test()
638 EVP_PKEY_CTX_free(paramgen_ctx); in dsa_paramgen_test()