Lines Matching refs:mainctx
39 static OSSL_LIB_CTX *mainctx = NULL; variable
320 if (!TEST_ptr(fromctx = EVP_PKEY_CTX_new_from_name(mainctx, keytype, NULL)) in do_pkey_tofrom_data_select()
358 ret = TEST_ptr(gctx = EVP_PKEY_CTX_new_from_name(mainctx, "DHX", NULL)) in test_dh_tofrom_data_select()
386 ret = TEST_ptr(gctx = EVP_PKEY_CTX_new_from_name(mainctx, "DH", NULL)) in test_dh_paramgen()
395 ret = ret && TEST_ptr(gctx = EVP_PKEY_CTX_new_from_pkey(mainctx, pkey, NULL)) in test_dh_paramgen()
441 ret = TEST_ptr(ctx = EVP_PKEY_CTX_new_from_name(mainctx, "DH", NULL)) in test_dh_paramfromdata()
472 if (TEST_ptr(key = EVP_PKEY_Q_keygen(mainctx, NULL, "XOR"))) in test_new_keytype()
475 if (!TEST_true(OSSL_PROVIDER_add_builtin(mainctx, "tls-provider", in test_new_keytype()
477 || !TEST_ptr(tlsprov = OSSL_PROVIDER_load(mainctx, "tls-provider"))) in test_new_keytype()
480 if (!TEST_ptr(key = EVP_PKEY_Q_keygen(mainctx, NULL, "XOR"))) in test_new_keytype()
517 || !TEST_ptr(key = EVP_PKEY_Q_keygen(mainctx, NULL, "EC", "P-256")) in test_ec_d2i_i2d_pubkey()
524 || !TEST_ptr(outkey = d2i_PUBKEY_ex_fp(fp, NULL, mainctx, NULL)) in test_ec_d2i_i2d_pubkey()
542 ret = TEST_ptr(key = EVP_PKEY_Q_keygen(mainctx, NULL, "EC", "P-256")) in test_ec_tofrom_data_select()
554 ret = TEST_ptr(key = EVP_PKEY_Q_keygen(mainctx, NULL, "X25519")) in test_ecx_tofrom_data_select()
568 ret = TEST_ptr(key = EVP_PKEY_Q_keygen(mainctx, NULL, "SM2")) in test_sm2_tofrom_data_select()
583 mainctx, NULL)) in test_rsa_tofrom_data_select()
604 if (!TEST_ptr(pkey = d2i_AutoPrivateKey_ex(NULL, &p, input_len, mainctx, in test_d2i_AutoPrivateKey_ex()
696 if (!TEST_ptr(oldctx = OSSL_LIB_CTX_set0_default(mainctx)) in test_alternative_default()
706 if (!TEST_ptr_eq(OSSL_LIB_CTX_set0_default(oldctx), mainctx) in test_alternative_default()
870 ret = TEST_ptr(ctx = EVP_PKEY_CTX_new_from_name(mainctx, type, NULL)) in do_fromdata_key_is_equal()
1038 ret = TEST_ptr(gen_ctx = EVP_PKEY_CTX_new_from_name(mainctx, "DSA", NULL)) in do_check_params()
1042 && TEST_ptr(check_ctx = EVP_PKEY_CTX_new_from_pkey(mainctx, pkey, in do_check_params()
1084 mainctx, NULL)) in test_dsa_tofrom_data_select()
1117 mainctx, NULL)) in test_dsa_todata()
1192 if (!TEST_ptr(ctx = EVP_PKEY_CTX_new_from_name(mainctx, "DSA", NULL)) in test_dsa_fromdata_digest_prop()
1197 if (!TEST_ptr(gctx = EVP_PKEY_CTX_new_from_pkey(mainctx, pkey, NULL)) in test_dsa_fromdata_digest_prop()
1220 mainctx, NULL)) in test_pkey_todata_null()
1243 mainctx, NULL)) in test_pkey_export_null()
1262 mainctx, NULL)) in test_pkey_export()
1307 mainctx, NULL)) in test_rsa_pss_sign()
1308 && TEST_ptr(pctx = EVP_PKEY_CTX_new_from_pkey(mainctx, pkey, NULL)) in test_rsa_pss_sign()
1433 if (!TEST_ptr_null(md = EVP_MD_fetch(mainctx, "SHA256:BogusName", NULL))) { in evp_test_name_parsing()
1443 if (!test_get_libctx(&mainctx, &nullprov, NULL, NULL, NULL)) { in setup_tests()
1444 OSSL_LIB_CTX_free(mainctx); in setup_tests()
1445 mainctx = NULL; in setup_tests()
1499 OSSL_LIB_CTX_free(mainctx); in cleanup_tests()