Lines Matching defs:testctx
44 static OSSL_LIB_CTX *testctx = NULL;
611 testctx, testpropq);
674 pkey = EVP_PKEY_new_raw_private_key_ex(testctx, "HMAC",
717 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_name(testctx, keytype, testpropq)))
750 testctx, NULL);
1113 if (!TEST_true(EVP_DigestSignInit_ex(ctx, NULL, NULL, testctx,
1177 ctx = EVP_PKEY_CTX_new_from_pkey(testctx, pkey, NULL);
1252 ctx = EVP_PKEY_CTX_new_from_pkey(testctx, pkey, NULL);
1307 else if (!TEST_ptr(type = EVP_CIPHER_fetch(testctx, "AES-256-CBC",
1623 if (!TEST_ptr(sha256 = EVP_MD_fetch(testctx, "sha256", testpropq))
1624 || !TEST_ptr(shake256 = EVP_MD_fetch(testctx, "shake256", testpropq)))
1809 if (testctx != NULL)
1911 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_name(testctx, "EC", NULL))
1920 if (!TEST_ptr(kctx = EVP_PKEY_CTX_new_from_pkey(testctx, params, NULL))
1976 pkey = PEM_read_bio_PUBKEY_ex(bio, NULL, NULL, NULL, testctx, testpropq);
1986 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_pkey(testctx, pkey, testpropq)))
1991 if (!TEST_ptr(sm3 = EVP_MD_fetch(testctx, "sm3", testpropq)))
2044 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_name(testctx,
2057 if (!TEST_ptr(kctx = EVP_PKEY_CTX_new_from_pkey(testctx,
2073 if (!TEST_ptr(sctx = EVP_PKEY_CTX_new_from_pkey(testctx, pkey, testpropq)))
2079 if (!TEST_ptr(check_md = EVP_MD_fetch(testctx, "sm3", testpropq)))
2155 if (!TEST_ptr(cctx = EVP_PKEY_CTX_new_from_pkey(testctx,
2188 if (!TEST_ptr(check_md = EVP_MD_fetch(testctx, mdname, testpropq)))
2277 testctx,
2296 testctx, OBJ_nid2sn(keys[tst].type),
2386 if (!TEST_ptr(ctx = EVP_PKEY_CTX_new_from_pkey(testctx, pkey, testpropq)))
2434 || !TEST_true(EVP_DigestSignInit_ex(mdctx, NULL, NULL, testctx,
2520 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_name(testctx, "HKDF", testpropq)))
2564 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_name(testctx, "HKDF", testpropq)))
2605 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_name(testctx, "HKDF", testpropq)))
2635 X509_PUBKEY *xp = X509_PUBKEY_new_ex(testctx, testpropq);
2670 xp = X509_PUBKEY_new_ex(testctx, testpropq);
2718 ctx = EVP_PKEY_CTX_new_from_pkey(testctx, pkey, testpropq);
2774 || !TEST_true(EVP_DigestSignInit_ex(mdctx, NULL, "SHA1", testctx, testpropq,
2821 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_name(testctx, "DSA", NULL))
2888 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_name(testctx, "RSA", NULL))
2986 || !TEST_ptr(key_ctx = EVP_PKEY_CTX_new_from_pkey(testctx, key, NULL))
3029 if (!TEST_ptr(cipher = EVP_CIPHER_fetch(testctx, "ChaCha20-Poly1305", testpropq))
3281 || !TEST_ptr(rand = EVP_RAND_fetch(testctx, "TEST-RAND", testpropq)))
3346 EVP_CIPHER_fetch(testctx, "aes-128-cbc", testpropq);
3356 EVP_CIPHER_fetch(testctx, "aes-128-ofb", testpropq);
3366 EVP_CIPHER_fetch(testctx, "aes-128-cfb", testpropq);
3376 EVP_CIPHER_fetch(testctx, "aes-128-gcm", testpropq);
3385 EVP_CIPHER_fetch(testctx, "aes-128-ccm", testpropq);
3399 EVP_CIPHER_fetch(testctx, "aes-128-ocb", testpropq);
3486 type = EVP_CIPHER_fetch(testctx, "des-cbc", testpropq);
3491 type = EVP_CIPHER_fetch(testctx, "des-ofb", testpropq);
3496 type = EVP_CIPHER_fetch(testctx, "des-cfb", testpropq);
3501 type = EVP_CIPHER_fetch(testctx, "des-ede3-cbc", testpropq);
3506 type = EVP_CIPHER_fetch(testctx, "des-ede3-ofb", testpropq);
3511 type = EVP_CIPHER_fetch(testctx, "des-ede3-cfb", testpropq);
3560 if (!TEST_ptr(cipher = EVP_CIPHER_fetch(testctx, algos[idx], testpropq))
3655 md = EVP_MD_fetch(testctx, "sha256", testpropq);
3657 && TEST_ptr((ctx = EVP_PKEY_CTX_new_from_name(testctx, "RSA-PSS", testpropq)))
3680 && TEST_ptr(sha256 = EVP_MD_fetch(testctx, "sha256", NULL))
3867 if (!TEST_ptr(type = EVP_CIPHER_fetch(testctx, t->cipher, testpropq))) {
3949 || !TEST_ptr(type = EVP_CIPHER_fetch(testctx, t->cipher, testpropq))
4009 if (!TEST_ptr(type = EVP_CIPHER_fetch(testctx, "aes-128-cfb", testpropq))) {
4122 if ((type = EVP_CIPHER_fetch(testctx, t->cipher, testpropq)) == NULL) {
4207 if (!TEST_ptr(type = EVP_CIPHER_fetch(testctx, "aes-256-gcm", testpropq))) {
4318 if (!TEST_ptr(ciph = EVP_CIPHER_fetch(testctx, ivlen_change_ciphers[idx],
4389 if (!TEST_ptr(ciph = EVP_CIPHER_fetch(testctx, keylen_change_ciphers[idx],
4513 if (testctx != NULL)
4735 if (testctx != NULL)
4817 if (testctx != NULL)
5013 pkey = EVP_PKEY_new_raw_private_key_ex(testctx, OBJ_nid2sn(ecxnids[tst]),
5067 pkey = EVP_PKEY_new_raw_public_key_ex(testctx, OBJ_nid2sn(keys[tst].type),
5125 || !TEST_ptr(cipher = EVP_CIPHER_fetch(testctx, "AES-256-GCM", "")))
5175 if ((cipher = EVP_CIPHER_fetch(testctx, "AES-256-GCM", "")) == NULL)
5262 || !TEST_ptr(cipher = EVP_CIPHER_fetch(testctx, "RC4", "")))
5301 if ((cipher = EVP_CIPHER_fetch(testctx, "RC4", "")) == NULL)
5381 testctx = OSSL_LIB_CTX_new();
5382 if (!TEST_ptr(testctx))
5390 if (!OSSL_PROVIDER_add_builtin(testctx, "legacy", ossl_legacy_provider_init))
5395 deflprov = OSSL_PROVIDER_load(testctx, "default");
5396 lgcyprov = OSSL_PROVIDER_load(testctx, "legacy");
5513 if (testctx == NULL) {
5546 OSSL_LIB_CTX_free(testctx);