Lines Matching refs:TEST_ptr
676 if (!TEST_ptr(pkey)) in load_example_hmac_key()
688 if (!TEST_ptr(ctx = OSSL_LIB_CTX_new()) in test_EVP_set_default_properties()
689 || !TEST_ptr(md = EVP_MD_fetch(ctx, "sha256", NULL))) in test_EVP_set_default_properties()
696 || !TEST_ptr(md = EVP_MD_fetch(ctx, "sha256", "-provider"))) in test_EVP_set_default_properties()
702 || !TEST_ptr(md = EVP_MD_fetch(ctx, "sha256", NULL))) in test_EVP_set_default_properties()
717 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_name(testctx, keytype, testpropq))) in make_key_fromdata()
724 if (!TEST_ptr(tmp_pkey)) in make_key_fromdata()
787 if (!TEST_ptr(p = BN_new()) in test_EVP_PKEY_ffc_priv_pub()
788 || !TEST_ptr(q = BN_new()) in test_EVP_PKEY_ffc_priv_pub()
789 || !TEST_ptr(g = BN_new()) in test_EVP_PKEY_ffc_priv_pub()
790 || !TEST_ptr(pub = BN_new()) in test_EVP_PKEY_ffc_priv_pub()
791 || !TEST_ptr(priv = BN_new())) in test_EVP_PKEY_ffc_priv_pub()
795 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) in test_EVP_PKEY_ffc_priv_pub()
800 if (!TEST_ptr(params = OSSL_PARAM_BLD_to_param(bld)) in test_EVP_PKEY_ffc_priv_pub()
801 || !TEST_ptr(just_params = make_key_fromdata(keytype, params))) in test_EVP_PKEY_ffc_priv_pub()
814 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) in test_EVP_PKEY_ffc_priv_pub()
821 if (!TEST_ptr(params = OSSL_PARAM_BLD_to_param(bld)) in test_EVP_PKEY_ffc_priv_pub()
822 || !TEST_ptr(params_and_priv = make_key_fromdata(keytype, params))) in test_EVP_PKEY_ffc_priv_pub()
835 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) in test_EVP_PKEY_ffc_priv_pub()
842 if (!TEST_ptr(params = OSSL_PARAM_BLD_to_param(bld)) in test_EVP_PKEY_ffc_priv_pub()
843 || !TEST_ptr(params_and_pub = make_key_fromdata(keytype, params))) in test_EVP_PKEY_ffc_priv_pub()
856 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) in test_EVP_PKEY_ffc_priv_pub()
865 if (!TEST_ptr(params = OSSL_PARAM_BLD_to_param(bld)) in test_EVP_PKEY_ffc_priv_pub()
866 || !TEST_ptr(params_and_keypair = make_key_fromdata(keytype, params))) in test_EVP_PKEY_ffc_priv_pub()
927 if (!TEST_ptr(priv = BN_bin2bn(ec_priv, sizeof(ec_priv), NULL))) in test_EC_priv_pub()
931 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) in test_EC_priv_pub()
936 if (!TEST_ptr(params = OSSL_PARAM_BLD_to_param(bld)) in test_EC_priv_pub()
937 || !TEST_ptr(just_params = make_key_fromdata("EC", params))) in test_EC_priv_pub()
950 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) in test_EC_priv_pub()
957 if (!TEST_ptr(params = OSSL_PARAM_BLD_to_param(bld)) in test_EC_priv_pub()
958 || !TEST_ptr(params_and_priv = make_key_fromdata("EC", params))) in test_EC_priv_pub()
977 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) in test_EC_priv_pub()
985 if (!TEST_ptr(params = OSSL_PARAM_BLD_to_param(bld)) in test_EC_priv_pub()
986 || !TEST_ptr(params_and_pub = make_key_fromdata("EC", params))) in test_EC_priv_pub()
999 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) in test_EC_priv_pub()
1009 if (!TEST_ptr(params = OSSL_PARAM_BLD_to_param(bld)) in test_EC_priv_pub()
1010 || !TEST_ptr(params_and_keypair = make_key_fromdata("EC", params))) in test_EC_priv_pub()
1085 if (!TEST_ptr(priv = BN_bin2bn(ec_priv, sizeof(ec_priv), NULL))) in test_EC_priv_only_legacy()
1089 if (!TEST_ptr(eckey)) in test_EC_priv_only_legacy()
1096 if (!TEST_ptr(pkey)) in test_EC_priv_only_legacy()
1106 if (!TEST_ptr(ctx)) in test_EC_priv_only_legacy()
1122 if (!TEST_ptr(dup_pk = EVP_PKEY_dup(pkey))) in test_EC_priv_only_legacy()
1157 if (!TEST_ptr(pkey = load_example_rsa_key())) in test_EVP_PKEY_sign()
1161 if (!TEST_ptr(pkey = load_example_dsa_key())) in test_EVP_PKEY_sign()
1169 if (!TEST_ptr(pkey = load_example_ec_key())) in test_EVP_PKEY_sign()
1178 if (!TEST_ptr(ctx) in test_EVP_PKEY_sign()
1184 if (!TEST_ptr(sig) in test_EVP_PKEY_sign()
1224 if (!TEST_ptr(pkey = load_example_rsa_key())) in test_EVP_PKEY_sign_with_app_method()
1226 if (!TEST_ptr(rsa_meth = RSA_meth_dup(RSA_get_default_method()))) in test_EVP_PKEY_sign_with_app_method()
1229 if (!TEST_ptr(rsa = EVP_PKEY_get1_RSA(pkey)) in test_EVP_PKEY_sign_with_app_method()
1236 if (!TEST_ptr(pkey = load_example_dsa_key())) in test_EVP_PKEY_sign_with_app_method()
1238 if (!TEST_ptr(dsa_meth = DSA_meth_dup(DSA_get_default_method()))) in test_EVP_PKEY_sign_with_app_method()
1241 if (!TEST_ptr(dsa = EVP_PKEY_get1_DSA(pkey)) in test_EVP_PKEY_sign_with_app_method()
1253 if (!TEST_ptr(ctx) in test_EVP_PKEY_sign_with_app_method()
1259 if (!TEST_ptr(sig) in test_EVP_PKEY_sign_with_app_method()
1307 else if (!TEST_ptr(type = EVP_CIPHER_fetch(testctx, "AES-256-CBC", in test_EVP_Enveloped()
1311 if (!TEST_ptr(keypair = load_example_rsa_key()) in test_EVP_Enveloped()
1312 || !TEST_ptr(kek = OPENSSL_zalloc(EVP_PKEY_get_size(keypair))) in test_EVP_Enveloped()
1313 || !TEST_ptr(ctx = EVP_CIPHER_CTX_new()) in test_EVP_Enveloped()
1387 if (!TEST_ptr(membio) || !TEST_ptr(mdbio)) in test_EVP_DigestSignInit()
1393 if (!TEST_ptr(a_md_ctx = md_ctx = EVP_MD_CTX_new()) in test_EVP_DigestSignInit()
1394 || !TEST_ptr(a_md_ctx_verify = md_ctx_verify = EVP_MD_CTX_new())) in test_EVP_DigestSignInit()
1399 if (!TEST_ptr(pkey = load_example_rsa_key())) in test_EVP_DigestSignInit()
1403 if (!TEST_ptr(pkey = load_example_dsa_key())) in test_EVP_DigestSignInit()
1410 if (!TEST_ptr(pkey = load_example_hmac_key())) in test_EVP_DigestSignInit()
1437 || !TEST_ptr(sig = OPENSSL_malloc(sig_len))) in test_EVP_DigestSignInit()
1457 || !TEST_ptr(sig = OPENSSL_malloc(sig_len)) in test_EVP_DigestSignInit()
1502 || !TEST_ptr(sig2 = OPENSSL_malloc(sig2_len)) in test_EVP_DigestSignInit()
1534 if (!TEST_ptr(md_ctx = EVP_MD_CTX_new()) in test_EVP_DigestVerifyInit()
1535 || !TEST_ptr(pkey = load_example_rsa_key())) in test_EVP_DigestVerifyInit()
1578 if (!TEST_ptr(pkey = EVP_PKEY_new_raw_private_key(EVP_PKEY_SIPHASH, NULL, in test_siphash_digestsign()
1582 if (!TEST_ptr(mdctx = EVP_MD_CTX_create())) in test_siphash_digestsign()
1620 if (!TEST_ptr(md_ctx = EVP_MD_CTX_new())) in test_EVP_Digest()
1623 if (!TEST_ptr(sha256 = EVP_MD_fetch(testctx, "sha256", testpropq)) in test_EVP_Digest()
1624 || !TEST_ptr(shake256 = EVP_MD_fetch(testctx, "shake256", testpropq))) in test_EVP_Digest()
1638 || !TEST_ptr(EVP_MD_CTX_get0_md(md_ctx)) in test_EVP_Digest()
1650 || !TEST_ptr(EVP_MD_CTX_get0_md(md_ctx)) in test_EVP_Digest()
1673 if (!TEST_ptr(md_null) in test_EVP_md_null()
1674 || !TEST_ptr(md_ctx = EVP_MD_CTX_new())) in test_EVP_md_null()
1702 if (!TEST_ptr(pkey = d2i_AutoPrivateKey(NULL, &p, input_len)) in test_d2i_AutoPrivateKey()
1765 ret = (ec_der_pub_keys[id].valid && TEST_ptr(pkey)) in test_invalide_ec_char2_pub_range_decode()
1779 if (!TEST_ptr(p8inf = d2i_PKCS8_PRIV_KEY_INFO(NULL, &derp, in test_EVP_PKCS82PKEY()
1813 if (!TEST_ptr(membio = BIO_new(BIO_s_mem())) in test_EVP_PKCS82PKEY_wrong_tag()
1814 || !TEST_ptr(pkey = load_example_rsa_key()) in test_EVP_PKCS82PKEY_wrong_tag()
1819 || !TEST_ptr(p8inf = d2i_PKCS8_PRIV_KEY_INFO_bio(membio, NULL)) in test_EVP_PKCS82PKEY_wrong_tag()
1820 || !TEST_ptr(pkey2 = EVP_PKCS82PKEY(p8inf)) in test_EVP_PKCS82PKEY_wrong_tag()
1843 if (!TEST_ptr(membio = BIO_new(BIO_s_mem())) in test_privatekey_to_pkcs8()
1844 || !TEST_ptr(pkey = load_example_rsa_key()) in test_privatekey_to_pkcs8()
1849 || !TEST_ptr(membuf) in test_privatekey_to_pkcs8()
1886 if (!TEST_ptr(p = OSSL_PARAM_locate_const(params, in ec_export_get_encoding_cb()
1911 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_name(testctx, "EC", NULL)) in test_EC_keygen_with_enc()
1916 || !TEST_ptr(params)) in test_EC_keygen_with_enc()
1920 if (!TEST_ptr(kctx = EVP_PKEY_CTX_new_from_pkey(testctx, params, NULL)) in test_EC_keygen_with_enc()
1923 || !TEST_ptr(key)) in test_EC_keygen_with_enc()
1983 if (!TEST_ptr(mctx = EVP_MD_CTX_new())) in test_EVP_SM2_verify()
1986 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_pkey(testctx, pkey, testpropq))) in test_EVP_SM2_verify()
1991 if (!TEST_ptr(sm3 = EVP_MD_fetch(testctx, "sm3", testpropq))) in test_EVP_SM2_verify()
2044 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_name(testctx, in test_EVP_SM2()
2057 if (!TEST_ptr(kctx = EVP_PKEY_CTX_new_from_pkey(testctx, in test_EVP_SM2()
2067 if (!TEST_ptr(md_ctx = EVP_MD_CTX_new())) in test_EVP_SM2()
2070 if (!TEST_ptr(md_ctx_verify = EVP_MD_CTX_new())) in test_EVP_SM2()
2073 if (!TEST_ptr(sctx = EVP_PKEY_CTX_new_from_pkey(testctx, pkey, testpropq))) in test_EVP_SM2()
2079 if (!TEST_ptr(check_md = EVP_MD_fetch(testctx, "sm3", testpropq))) in test_EVP_SM2()
2095 if (!TEST_ptr(sig = OPENSSL_malloc(sig_len))) in test_EVP_SM2()
2155 if (!TEST_ptr(cctx = EVP_PKEY_CTX_new_from_pkey(testctx, in test_EVP_SM2()
2188 if (!TEST_ptr(check_md = EVP_MD_fetch(testctx, mdname, testpropq))) in test_EVP_SM2()
2308 if (!TEST_ptr(pkey) in test_set_get_raw_keys_int()
2380 if (!TEST_ptr(pkey = load_example_key(ak->keytype, input, input_len))) in test_EVP_PKEY_check()
2386 if (!TEST_ptr(ctx = EVP_PKEY_CTX_new_from_pkey(testctx, pkey, testpropq))) in test_EVP_PKEY_check()
2433 if (!TEST_ptr(mdctx) in get_cmac_val()
2478 || !TEST_ptr(pkey) in test_CMAC_keygen()
2490 if (!TEST_ptr(pkey) in test_CMAC_keygen()
2520 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_name(testctx, "HKDF", testpropq))) in test_HKDF()
2564 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_name(testctx, "HKDF", testpropq))) in test_emptyikm_HKDF()
2605 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_name(testctx, "HKDF", testpropq))) in test_empty_salt_info_HKDF()
2639 if (!TEST_ptr(xp)) in test_X509_PUBKEY_inplace()
2641 if (!TEST_ptr(d2i_X509_PUBKEY(&xp, &p, input_len))) in test_X509_PUBKEY_inplace()
2644 if (!TEST_ptr(X509_PUBKEY_get0(xp))) in test_X509_PUBKEY_inplace()
2650 if (!TEST_ptr(xp = d2i_X509_PUBKEY(&xp, &p, input_len))) in test_X509_PUBKEY_inplace()
2671 if (!TEST_ptr(xp) in test_X509_PUBKEY_dup()
2672 || !TEST_ptr(d2i_X509_PUBKEY(&xp, &p, input_len)) in test_X509_PUBKEY_dup()
2673 || !TEST_ptr(xq = X509_PUBKEY_dup(xp)) in test_X509_PUBKEY_dup()
2677 if (!TEST_ptr(X509_PUBKEY_get0(xq)) in test_X509_PUBKEY_dup()
2678 || !TEST_ptr(X509_PUBKEY_get0(xp)) in test_X509_PUBKEY_dup()
2687 if (!TEST_ptr(xp = d2i_X509_PUBKEY(&xp, &p, input_len)) in test_X509_PUBKEY_dup()
2688 || !TEST_ptr(xq = X509_PUBKEY_dup(xp))) in test_X509_PUBKEY_dup()
2719 if (!TEST_ptr(ctx) in test_EVP_PKEY_CTX_get_set_params()
2727 if (!TEST_ptr(params) in test_EVP_PKEY_CTX_get_set_params()
2728 || !TEST_ptr(OSSL_PARAM_locate_const(params, in test_EVP_PKEY_CTX_get_set_params()
2733 if (!TEST_ptr(params) in test_EVP_PKEY_CTX_get_set_params()
2734 || !TEST_ptr(OSSL_PARAM_locate_const(params, in test_EVP_PKEY_CTX_get_set_params()
2736 || !TEST_ptr(OSSL_PARAM_locate_const(params, in test_EVP_PKEY_CTX_get_set_params()
2773 if (!TEST_ptr(mdctx) in test_EVP_PKEY_CTX_get_set_params()
2783 if (!TEST_ptr(params) in test_EVP_PKEY_CTX_get_set_params()
2821 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_name(testctx, "DSA", NULL)) in test_DSA_get_set_params()
2822 || !TEST_ptr(bld = OSSL_PARAM_BLD_new()) in test_DSA_get_set_params()
2823 || !TEST_ptr(p = BN_new()) in test_DSA_get_set_params()
2824 || !TEST_ptr(q = BN_new()) in test_DSA_get_set_params()
2825 || !TEST_ptr(g = BN_new()) in test_DSA_get_set_params()
2826 || !TEST_ptr(pub = BN_new()) in test_DSA_get_set_params()
2827 || !TEST_ptr(priv = BN_new())) in test_DSA_get_set_params()
2837 if (!TEST_ptr(params = OSSL_PARAM_BLD_to_param(bld))) in test_DSA_get_set_params()
2845 if (!TEST_ptr(pkey)) in test_DSA_get_set_params()
2888 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_name(testctx, "RSA", NULL)) in test_RSA_get_set_params()
2889 || !TEST_ptr(bld = OSSL_PARAM_BLD_new()) in test_RSA_get_set_params()
2890 || !TEST_ptr(n = BN_new()) in test_RSA_get_set_params()
2891 || !TEST_ptr(e = BN_new()) in test_RSA_get_set_params()
2892 || !TEST_ptr(d = BN_new())) in test_RSA_get_set_params()
2898 if (!TEST_ptr(params = OSSL_PARAM_BLD_to_param(bld))) in test_RSA_get_set_params()
2906 if (!TEST_ptr(pkey)) in test_RSA_get_set_params()
2932 if (!TEST_ptr(key = load_example_rsa_key()) in test_RSA_OAEP_set_get_params()
2933 || !TEST_ptr(key_ctx = EVP_PKEY_CTX_new_from_pkey(0, key, 0))) in test_RSA_OAEP_set_get_params()
2985 if (!TEST_ptr(key = load_example_rsa_key()) in test_RSA_OAEP_set_null_label()
2986 || !TEST_ptr(key_ctx = EVP_PKEY_CTX_new_from_pkey(testctx, key, NULL)) in test_RSA_OAEP_set_null_label()
3029 if (!TEST_ptr(cipher = EVP_CIPHER_fetch(testctx, "ChaCha20-Poly1305", testpropq)) in test_decrypt_null_chunks()
3030 || !TEST_ptr(ctx = EVP_CIPHER_CTX_new()) in test_decrypt_null_chunks()
3097 if (!TEST_ptr(p = BN_new()) in test_EVP_PKEY_set1_DH()
3098 || !TEST_ptr(g = BN_new()) in test_EVP_PKEY_set1_DH()
3099 || !TEST_ptr(pubkey = BN_new()) in test_EVP_PKEY_set1_DH()
3103 || !TEST_ptr(noqdh = DH_new()) in test_EVP_PKEY_set1_DH()
3106 || !TEST_ptr(pubkey = BN_new()) in test_EVP_PKEY_set1_DH()
3114 if (!TEST_ptr(x942dh) in test_EVP_PKEY_set1_DH()
3115 || !TEST_ptr(noqdh) in test_EVP_PKEY_set1_DH()
3116 || !TEST_ptr(pkey1) in test_EVP_PKEY_set1_DH()
3117 || !TEST_ptr(pkey2) in test_EVP_PKEY_set1_DH()
3128 || !TEST_ptr(pubkey)) in test_EVP_PKEY_set1_DH()
3176 if (!TEST_ptr(ctx = EVP_PKEY_CTX_new_id(EVP_PKEY_RSA, NULL))) in test_keygen_with_empty_template()
3181 if (!TEST_ptr(tkey = EVP_PKEY_new()) in test_keygen_with_empty_template()
3183 || !TEST_ptr(ctx = EVP_PKEY_CTX_new(tkey, NULL))) in test_keygen_with_empty_template()
3217 if (!TEST_ptr(tmpctx)) in test_pkey_ctx_fail_without_provider()
3221 if (!TEST_ptr(tmpnullprov)) in test_pkey_ctx_fail_without_provider()
3254 if (expect_null ? !TEST_ptr_null(pctx) : !TEST_ptr(pctx)) in test_pkey_ctx_fail_without_provider()
3281 || !TEST_ptr(rand = EVP_RAND_fetch(testctx, "TEST-RAND", testpropq))) in test_rand_agglomeration()
3285 if (!TEST_ptr(ctx)) in test_rand_agglomeration()
3408 if (!TEST_ptr(type) in test_evp_iv_aes()
3409 || !TEST_ptr((ctx = EVP_CIPHER_CTX_new())) in test_evp_iv_aes()
3519 if (!TEST_ptr(type) in test_evp_iv_des()
3520 || !TEST_ptr((ctx = EVP_CIPHER_CTX_new())) in test_evp_iv_des()
3560 if (!TEST_ptr(cipher = EVP_CIPHER_fetch(testctx, algos[idx], testpropq)) in test_evp_bf_default_keylen()
3603 if (!TEST_ptr(ctx) in test_ecpub()
3622 if (!TEST_ptr((pkey2 = EVP_PKEY_new())) in test_ecpub()
3623 || !TEST_ptr((ec = EC_KEY_new_by_curve_name(nid))) in test_ecpub()
3628 if (!TEST_ptr(d2i_PublicKey(EVP_PKEY_EC, &pkey2, &q, savelen))) in test_ecpub()
3656 ret = TEST_ptr(md) in test_EVP_rsa_pss_with_keygen_bits()
3657 && TEST_ptr((ctx = EVP_PKEY_CTX_new_from_name(testctx, "RSA-PSS", testpropq))) in test_EVP_rsa_pss_with_keygen_bits()
3679 ret = TEST_ptr(pkey = load_example_rsa_key()) in test_EVP_rsa_pss_set_saltlen()
3680 && TEST_ptr(sha256 = EVP_MD_fetch(testctx, "sha256", NULL)) in test_EVP_rsa_pss_set_saltlen()
3681 && TEST_ptr(sha256_ctx = EVP_MD_CTX_new()) in test_EVP_rsa_pss_set_saltlen()
3702 if (!TEST_ptr(aes128)) in md_names()
3719 if (!TEST_ptr(ctx)) in test_names_do_all()
3723 if (!TEST_ptr(sha256)) in test_names_do_all()
3867 if (!TEST_ptr(type = EVP_CIPHER_fetch(testctx, t->cipher, testpropq))) { in test_evp_init_seq()
3948 if (!TEST_ptr(ctx = EVP_CIPHER_CTX_new()) in test_evp_reinit_seq()
3949 || !TEST_ptr(type = EVP_CIPHER_fetch(testctx, t->cipher, testpropq)) in test_evp_reinit_seq()
4005 if (!TEST_ptr(ctx = EVP_CIPHER_CTX_new())) { in test_evp_reset()
4009 if (!TEST_ptr(type = EVP_CIPHER_fetch(testctx, "aes-128-cfb", testpropq))) { in test_evp_reset()
4118 if (!TEST_ptr(ctx = EVP_CIPHER_CTX_new())) { in test_evp_updated_iv()
4203 if (!TEST_ptr(ctx = EVP_CIPHER_CTX_new())) { in test_gcm_reinit()
4207 if (!TEST_ptr(type = EVP_CIPHER_fetch(testctx, "aes-256-gcm", testpropq))) { in test_gcm_reinit()
4315 if (!TEST_ptr(ctx = EVP_CIPHER_CTX_new())) in test_ivlen_change()
4318 if (!TEST_ptr(ciph = EVP_CIPHER_fetch(testctx, ivlen_change_ciphers[idx], in test_ivlen_change()
4386 if (!TEST_ptr(ctx = EVP_CIPHER_CTX_new())) in test_keylen_change()
4389 if (!TEST_ptr(ciph = EVP_CIPHER_fetch(testctx, keylen_change_ciphers[idx], in test_keylen_change()
4575 if (!TEST_ptr(pkey)) in test_custom_pmeth()
4586 if (!TEST_ptr(pkey)) { in test_custom_pmeth()
4599 if (!TEST_ptr(orig_pmeth = EVP_PKEY_meth_find(id)) in test_custom_pmeth()
4600 || !TEST_ptr(pkey)) in test_custom_pmeth()
4605 || !TEST_ptr(custom_pmeth = EVP_PKEY_meth_new(id, orig_flags))) in test_custom_pmeth()
4626 if (!TEST_ptr(pctx) in test_custom_pmeth()
4634 || !TEST_ptr(res = OPENSSL_malloc(reslen)) in test_custom_pmeth()
4641 if (!TEST_ptr(ctx) in test_custom_pmeth()
4642 || !TEST_ptr(res) in test_custom_pmeth()
4679 if (!TEST_ptr(md) || !TEST_ptr(ciph)) in test_evp_md_cipher_meth()
4744 if (!TEST_ptr(tmp)) in test_custom_md_meth()
4754 if (!TEST_ptr(mdctx) in test_custom_md_meth()
4826 if (!TEST_ptr(tmp)) in test_custom_ciph_meth()
4837 if (!TEST_ptr(ciphctx) in test_custom_ciph_meth()
4887 if (!TEST_ptr(e = ENGINE_by_id(engine_id))) in test_signatures_with_engine()
4912 if (!TEST_ptr(pkey)) in test_signatures_with_engine()
4915 if (!TEST_ptr(ctx = EVP_MD_CTX_new())) in test_signatures_with_engine()
4928 if (!TEST_ptr(mac = OPENSSL_malloc(maclen))) in test_signatures_with_engine()
4964 if (!TEST_ptr(e = ENGINE_by_id(engine_id))) in test_cipher_with_engine()
4972 if (!TEST_ptr(ctx = EVP_CIPHER_CTX_new()) in test_cipher_with_engine()
4973 || !TEST_ptr(ctx2 = EVP_CIPHER_CTX_new())) in test_cipher_with_engine()
5069 if (!TEST_ptr(pkey)) in test_ecx_not_private_key()
5072 if (!TEST_ptr(ctx = EVP_MD_CTX_new())) in test_ecx_not_private_key()
5081 if (!TEST_ptr(mac = OPENSSL_malloc(maclen))) in test_ecx_not_private_key()
5124 if (!TEST_ptr(ctx = EVP_CIPHER_CTX_new()) in aes_gcm_encrypt()
5125 || !TEST_ptr(cipher = EVP_CIPHER_fetch(testctx, "AES-256-GCM", ""))) in aes_gcm_encrypt()
5261 if (!TEST_ptr(ctx = EVP_CIPHER_CTX_new()) in rc4_encrypt()
5262 || !TEST_ptr(cipher = EVP_CIPHER_fetch(testctx, "RC4", ""))) in rc4_encrypt()
5360 if (!TEST_ptr(mdctx)) in test_invalid_ctx_for_digest()
5382 if (!TEST_ptr(testctx)) in setup_tests()
5434 if (!TEST_ptr(custom_pmeth)) in setup_tests()