Home
last modified time | relevance | path

Searched refs:paramgen_ctx (Results 1 – 2 of 2) sorted by relevance

/freebsd/crypto/openssl/test/
H A Ddhtest.c759 EVP_PKEY_CTX *paramgen_ctx; in dh_rfc5114_fix_nid_test() local
762 paramgen_ctx = EVP_PKEY_CTX_new_id(EVP_PKEY_DHX, 0); in dh_rfc5114_fix_nid_test()
763 if (!TEST_ptr(paramgen_ctx)) in dh_rfc5114_fix_nid_test()
765 if (!TEST_int_eq(EVP_PKEY_paramgen_init(paramgen_ctx), 1)) in dh_rfc5114_fix_nid_test()
768 if (!TEST_int_eq(EVP_PKEY_CTX_set_dhx_rfc5114(paramgen_ctx, 3), 1)) in dh_rfc5114_fix_nid_test()
771 if (!TEST_int_eq(EVP_PKEY_CTX_set_dhx_rfc5114(paramgen_ctx, 99), 0)) in dh_rfc5114_fix_nid_test()
776 EVP_PKEY_CTX_free(paramgen_ctx); in dh_rfc5114_fix_nid_test()
783 EVP_PKEY_CTX *paramgen_ctx; in dh_set_dh_nid_test() local
786 paramgen_ctx = EVP_PKEY_CTX_new_id(EVP_PKEY_DH, 0); in dh_set_dh_nid_test()
787 if (!TEST_ptr(paramgen_ctx)) in dh_set_dh_nid_test()
[all …]
H A Dacvp_test.c339 EVP_PKEY_CTX *paramgen_ctx = NULL; in dsa_paramgen() local
342 if (!TEST_ptr(paramgen_ctx = EVP_PKEY_CTX_new_from_name(libctx, "DSA", NULL)) in dsa_paramgen()
343 || !TEST_int_gt(EVP_PKEY_paramgen_init(paramgen_ctx), 0) in dsa_paramgen()
344 || !TEST_true(EVP_PKEY_CTX_set_dsa_paramgen_bits(paramgen_ctx, L)) in dsa_paramgen()
345 || !TEST_true(EVP_PKEY_CTX_set_dsa_paramgen_q_bits(paramgen_ctx, N)) in dsa_paramgen()
346 || !TEST_true(EVP_PKEY_paramgen(paramgen_ctx, &param_key))) in dsa_paramgen()
348 EVP_PKEY_CTX_free(paramgen_ctx); in dsa_paramgen()
372 EVP_PKEY_CTX *paramgen_ctx = NULL, *keygen_ctx = NULL; in dsa_keygen_test() local
405 EVP_PKEY_CTX_free(paramgen_ctx); in dsa_keygen_test()
412 EVP_PKEY_CTX *paramgen_ctx = NULL; in dsa_paramgen_test() local
[all …]