Home
last modified time | relevance | path

Searched refs:testctx (Results 1 – 7 of 7) sorted by relevance

/freebsd/crypto/openssl/test/
H A Dpkcs12_api_test.c24 static OSSL_LIB_CTX *testctx = NULL; variable
41 p12 = PKCS12_init_ex(NID_pkcs7_data, testctx, "provider=default"); in PKCS12_load()
79 if (!TEST_ptr(p12new = PKCS12_init_ex(NID_pkcs7_data, testctx, "provider=default"))) in changepass()
176 testctx, NULL, in pkcs12_create_ex2_test()
190 testctx, NULL, in pkcs12_create_ex2_test()
201 testctx, NULL, in pkcs12_create_ex2_test()
212 testctx, NULL, in pkcs12_create_ex2_test()
273 testctx, NULL, NULL, NULL))) in test_PKCS12_set_pbmac1_pbkdf2_invalid_saltlen()
315 if (!test_get_libctx(&testctx, &nullprov, NULL, NULL, NULL)) { in setup_tests()
316 OSSL_LIB_CTX_free(testctx); in setup_tests()
[all …]
H A Dhpke_test.c19 static OSSL_LIB_CTX *testctx = NULL; variable
96 OSSL_LIB_CTX *libctx = testctx; in do_testhpke()
954 testctx, NULL))) { in test_hpke_modes_suites()
984 NULL, 0, testctx, NULL))) in test_hpke_modes_suites()
988 testctx, NULL))) in test_hpke_modes_suites()
1023 testctx, NULL); in test_hpke_modes_suites()
1120 NULL, 0, testctx, NULL))) in test_hpke_export()
1124 testctx, NULL))) in test_hpke_export()
1151 testctx, NULL))) in test_hpke_export()
1254 testctx, NULL))) { in test_hpke_grease()
[all …]
H A Dml_kem_evp_extra_test.c26 static OSSL_LIB_CTX *testctx = NULL; variable
109 akey = EVP_PKEY_Q_keygen(testctx, NULL, "ML-KEM-768"); in test_ml_kem()
140 ctx = EVP_PKEY_CTX_new_from_pkey(testctx, bkey, NULL); in test_ml_kem()
168 ctx = EVP_PKEY_CTX_new_from_pkey(testctx, akey, NULL); in test_ml_kem()
262 akey = EVP_PKEY_Q_keygen(testctx, NULL, v->algorithm_name); in test_non_derandomised_ml_kem()
300 ctx = EVP_PKEY_CTX_new_from_pkey(testctx, bkey, NULL); in test_non_derandomised_ml_kem()
343 ctx = EVP_PKEY_CTX_new_from_pkey(testctx, akey, NULL); in test_non_derandomised_ml_kem()
434 if (!TEST_ptr(genctx = EVP_PKEY_CTX_new_from_name(testctx, alg, NULL)) in test_mlx_kem_dup_partial_selection()
457 if (!TEST_ptr(encctx = EVP_PKEY_CTX_new_from_pkey(testctx, keypair, NULL)) in test_mlx_kem_dup_partial_selection()
H A Devp_extra_test.c48 static OSSL_LIB_CTX *testctx = NULL; variable
901 testctx, testpropq); in load_example_key()
990 pkey = EVP_PKEY_new_raw_private_key_ex(testctx, "HMAC", in load_example_hmac_key()
1075 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_name(testctx, keytype, testpropq))) in make_key_fromdata()
1111 testctx, NULL); in test_selection()
1167 if (!TEST_ptr(genctx = EVP_PKEY_CTX_new_from_name(testctx, "RSA", NULL)) in test_rsasve_degenerate_exponent()
1175 if (!TEST_ptr(ctx = EVP_PKEY_CTX_new_from_pkey(testctx, pubkey, NULL)) in test_rsasve_degenerate_exponent()
1237 if (!TEST_ptr(ctx = EVP_PKEY_CTX_new_from_pkey(testctx, rsakey, NULL)) in test_rsasve_degenerate_ciphertext()
1665 if (!TEST_true(EVP_DigestSignInit_ex(ctx, NULL, NULL, testctx, in test_EC_priv_only_legacy()
1799 ctx = EVP_PKEY_CTX_new_from_pkey(testctx, pkey, NULL); in test_EVP_PKEY_sign()
[all …]
H A Dpkcs12_format_test.c24 static OSSL_LIB_CTX *testctx = NULL; variable
1004 p12_parsed = PKCS12_init_ex(NID_pkcs7_data, testctx, NULL); in pkcs12_recreate_test()
1081 testctx = OSSL_LIB_CTX_new(); in setup_tests()
1082 if (!TEST_ptr(testctx)) in setup_tests()
1089 deflprov = OSSL_PROVIDER_load(testctx, "default"); in setup_tests()
1092 lgcyprov = OSSL_PROVIDER_load(testctx, "legacy"); in setup_tests()
1094 PKCS12_helper_set_libctx(testctx); in setup_tests()
1140 OSSL_LIB_CTX_free(testctx); in cleanup_tests()
H A Dendecode_test.c53 static OSSL_LIB_CTX *testctx = NULL; variable
324 testctx, testpropq)) in decode_EVP_PKEY_prov()
377 if (!TEST_FL_ptr(cipher = EVP_CIPHER_fetch(testctx, pcipher, testpropq))) in encode_EVP_PKEY_legacy_PEM()
464 pass_pw, (void *)pass, testctx, testpropq), in encode_EVP_PKEY_PVK()
538 EVP_PKEY *pkey = EVP_PKCS82PKEY_ex(p8inf, testctx, testpropq); in check_unprotected_PKCS8_DER()
798 OSSL_PROVIDER *lgcyprov = OSSL_PROVIDER_load(testctx, "legacy"); in test_protected_via_PVK()
817 EVP_PKEY *pkey = d2i_PUBKEY_ex(NULL, &datap, data_len, testctx, testpropq); in check_public_DER()
1721 ret = TEST_ptr(key = EVP_PKEY_Q_keygen(testctx, "", "EC", "P-256")) in ec_encode_to_data_multi()
1822 if (!test_get_libctx(&testctx, &nullprov, config_file, &deflprov, prov_name)) in setup_tests()
1827 is_fips_3_0_0 = is_fips && fips_provider_version_eq(testctx, 3, 0, 0); in setup_tests()
[all …]
H A Dsslapitest.c3376 int testctx; in test_set_sigalgs() local
3382 testctx = ((size_t)idx < OSSL_NELEM(testsigalgs)); in test_set_sigalgs()
3383 curr = testctx ? &testsigalgs[idx] in test_set_sigalgs()
3393 if (testctx) { in test_set_sigalgs()
3418 if (!testctx) { in test_set_sigalgs()