Lines Matching defs:testctx
40 static OSSL_LIB_CTX *testctx = NULL;
593 testctx, testpropq);
656 pkey = EVP_PKEY_new_raw_private_key_ex(testctx, "HMAC",
699 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_name(testctx, keytype, testpropq)))
732 testctx, NULL);
1095 if (!TEST_true(EVP_DigestSignInit_ex(ctx, NULL, NULL, testctx,
1155 ctx = EVP_PKEY_CTX_new_from_pkey(testctx, pkey, NULL);
1203 else if (!TEST_ptr(type = EVP_CIPHER_fetch(testctx, "AES-256-CBC",
1519 if (!TEST_ptr(sha256 = EVP_MD_fetch(testctx, "sha256", testpropq))
1520 || !TEST_ptr(shake256 = EVP_MD_fetch(testctx, "shake256", testpropq)))
1705 if (testctx != NULL)
1807 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_name(testctx, "EC", NULL))
1816 if (!TEST_ptr(kctx = EVP_PKEY_CTX_new_from_pkey(testctx, params, NULL))
1872 pkey = PEM_read_bio_PUBKEY_ex(bio, NULL, NULL, NULL, testctx, testpropq);
1882 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_pkey(testctx, pkey, testpropq)))
1887 if (!TEST_ptr(sm3 = EVP_MD_fetch(testctx, "sm3", testpropq)))
1940 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_name(testctx,
1953 if (!TEST_ptr(kctx = EVP_PKEY_CTX_new_from_pkey(testctx,
1969 if (!TEST_ptr(sctx = EVP_PKEY_CTX_new_from_pkey(testctx, pkey, testpropq)))
1975 if (!TEST_ptr(check_md = EVP_MD_fetch(testctx, "sm3", testpropq)))
2051 if (!TEST_ptr(cctx = EVP_PKEY_CTX_new_from_pkey(testctx,
2084 if (!TEST_ptr(check_md = EVP_MD_fetch(testctx, mdname, testpropq)))
2173 testctx,
2192 testctx, OBJ_nid2sn(keys[tst].type),
2282 if (!TEST_ptr(ctx = EVP_PKEY_CTX_new_from_pkey(testctx, pkey, testpropq)))
2330 || !TEST_true(EVP_DigestSignInit_ex(mdctx, NULL, NULL, testctx,
2416 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_name(testctx, "HKDF", testpropq)))
2460 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_name(testctx, "HKDF", testpropq)))
2490 X509_PUBKEY *xp = X509_PUBKEY_new_ex(testctx, testpropq);
2525 xp = X509_PUBKEY_new_ex(testctx, testpropq);
2573 ctx = EVP_PKEY_CTX_new_from_pkey(testctx, pkey, testpropq);
2629 || !TEST_true(EVP_DigestSignInit_ex(mdctx, NULL, "SHA1", testctx, testpropq,
2676 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_name(testctx, "DSA", NULL))
2743 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_name(testctx, "RSA", NULL))
2854 if (!TEST_ptr(cipher = EVP_CIPHER_fetch(testctx, "ChaCha20-Poly1305", testpropq))
3106 || !TEST_ptr(rand = EVP_RAND_fetch(testctx, "TEST-RAND", testpropq)))
3171 EVP_CIPHER_fetch(testctx, "aes-128-cbc", testpropq);
3181 EVP_CIPHER_fetch(testctx, "aes-128-ofb", testpropq);
3191 EVP_CIPHER_fetch(testctx, "aes-128-cfb", testpropq);
3201 EVP_CIPHER_fetch(testctx, "aes-128-gcm", testpropq);
3210 EVP_CIPHER_fetch(testctx, "aes-128-ccm", testpropq);
3224 EVP_CIPHER_fetch(testctx, "aes-128-ocb", testpropq);
3311 type = EVP_CIPHER_fetch(testctx, "des-cbc", testpropq);
3316 type = EVP_CIPHER_fetch(testctx, "des-ofb", testpropq);
3321 type = EVP_CIPHER_fetch(testctx, "des-cfb", testpropq);
3326 type = EVP_CIPHER_fetch(testctx, "des-ede3-cbc", testpropq);
3331 type = EVP_CIPHER_fetch(testctx, "des-ede3-ofb", testpropq);
3336 type = EVP_CIPHER_fetch(testctx, "des-ede3-cfb", testpropq);
3385 if (!TEST_ptr(cipher = EVP_CIPHER_fetch(testctx, algos[idx], testpropq))
3480 md = EVP_MD_fetch(testctx, "sha256", testpropq);
3482 && TEST_ptr((ctx = EVP_PKEY_CTX_new_from_name(testctx, "RSA-PSS", testpropq)))
3505 && TEST_ptr(sha256 = EVP_MD_fetch(testctx, "sha256", NULL))
3668 if (!TEST_ptr(type = EVP_CIPHER_fetch(testctx, t->cipher, testpropq))) {
3772 if (!TEST_ptr(type = EVP_CIPHER_fetch(testctx, "aes-128-cfb", testpropq))) {
3885 if ((type = EVP_CIPHER_fetch(testctx, t->cipher, testpropq)) == NULL) {
3970 if (!TEST_ptr(type = EVP_CIPHER_fetch(testctx, "aes-256-gcm", testpropq))) {
4148 if (testctx != NULL)
4370 if (testctx != NULL)
4452 if (testctx != NULL)
4648 pkey = EVP_PKEY_new_raw_private_key_ex(testctx, OBJ_nid2sn(ecxnids[tst]),
4702 pkey = EVP_PKEY_new_raw_public_key_ex(testctx, OBJ_nid2sn(keys[tst].type),
4750 testctx = OSSL_LIB_CTX_new();
4751 if (!TEST_ptr(testctx))
4755 deflprov = OSSL_PROVIDER_load(testctx, "default");
4756 lgcyprov = OSSL_PROVIDER_load(testctx, "legacy");
4864 if (testctx == NULL) {
4889 OSSL_LIB_CTX_free(testctx);