• Home
  • Raw
  • Download

Lines Matching refs:TEST_ptr

525     if (!TEST_ptr(type = EVP_get_cipherbyname(t->cipher))) {  in test_evp_init_seq()
624 if (!TEST_ptr(ctx = EVP_CIPHER_CTX_new())) { in test_evp_reset()
628 if (!TEST_ptr(type = EVP_get_cipherbyname("aes-128-cfb"))) { in test_evp_reset()
714 if (!TEST_ptr(ctx = EVP_CIPHER_CTX_new())) { in test_gcm_reinit()
718 if (!TEST_ptr(type = EVP_get_cipherbyname("aes-256-gcm"))) { in test_gcm_reinit()
868 if (!TEST_ptr(ctx = EVP_CIPHER_CTX_new())) { in test_evp_updated_iv()
888 if (!TEST_ptr(updated_iv = EVP_CIPHER_CTX_iv(ctx))) { in test_evp_updated_iv()
943 if (!TEST_ptr(pkey = EVP_PKEY_new()) in load_example_rsa_key()
969 if (!TEST_ptr(keypair = load_example_rsa_key()) in test_EVP_Enveloped()
970 || !TEST_ptr(kek = OPENSSL_zalloc(EVP_PKEY_size(keypair))) in test_EVP_Enveloped()
971 || !TEST_ptr(ctx = EVP_CIPHER_CTX_new()) in test_EVP_Enveloped()
1009 if (!TEST_ptr(md_ctx = EVP_MD_CTX_new()) in test_EVP_DigestSignInit()
1010 || !TEST_ptr(md_ctx_verify = EVP_MD_CTX_new()) in test_EVP_DigestSignInit()
1011 || !TEST_ptr(pkey = load_example_rsa_key())) in test_EVP_DigestSignInit()
1023 if (!TEST_ptr(sig = OPENSSL_malloc(sig_len)) in test_EVP_DigestSignInit()
1052 if (!TEST_ptr(md_ctx = EVP_MD_CTX_new()) in test_EVP_DigestVerifyInit()
1053 || !TEST_ptr(pkey = load_example_rsa_key())) in test_EVP_DigestVerifyInit()
1080 if (!TEST_ptr(pkey = d2i_AutoPrivateKey(NULL, &p, input_len)) in test_d2i_AutoPrivateKey()
1141 if (!TEST_ptr(bio = BIO_new_mem_buf(ec_der_pub_keys[id].der, in test_invalide_ec_char2_pub_range_decode()
1145 ret = (ec_der_pub_keys[id].valid && TEST_ptr(eckey)) in test_invalide_ec_char2_pub_range_decode()
1161 if (!TEST_ptr(p8inf = d2i_PKCS8_PRIV_KEY_INFO(NULL, &derp, in test_EVP_PKCS82PKEY()
1232 if (!TEST_ptr(mctx = EVP_MD_CTX_new())) in test_EVP_SM2_verify()
1235 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new(pkey, NULL))) in test_EVP_SM2_verify()
1285 if (!TEST_ptr(pctx)) in test_EVP_SM2()
1298 if (!TEST_ptr(kctx)) in test_EVP_SM2()
1310 if (!TEST_ptr(md_ctx = EVP_MD_CTX_new())) in test_EVP_SM2()
1313 if (!TEST_ptr(md_ctx_verify = EVP_MD_CTX_new())) in test_EVP_SM2()
1316 if (!TEST_ptr(sctx = EVP_PKEY_CTX_new(pkey, NULL))) in test_EVP_SM2()
1338 if (!TEST_ptr(sig = OPENSSL_malloc(sig_len))) in test_EVP_SM2()
1357 if (!TEST_ptr(cctx = EVP_PKEY_CTX_new(pkey, NULL))) in test_EVP_SM2()
1463 if (!TEST_ptr(pkey) in test_set_get_raw_keys_int()
1526 if (!TEST_ptr(pkey = d2i_AutoPrivateKey(NULL, &p, input_len)) in test_EVP_PKEY_check()
1533 if (!TEST_ptr(pubkey = BIO_new_mem_buf(input, input_len)) in test_EVP_PKEY_check()
1534 || !TEST_ptr(eckey = d2i_EC_PUBKEY_bio(pubkey, NULL)) in test_EVP_PKEY_check()
1535 || !TEST_ptr(pkey = EVP_PKEY_new()) in test_EVP_PKEY_check()
1540 if (!TEST_ptr(eckey = d2i_ECParameters(NULL, &p, input_len)) in test_EVP_PKEY_check()
1542 || !TEST_ptr(pkey = EVP_PKEY_new()) in test_EVP_PKEY_check()
1551 if (!TEST_ptr(ctx = EVP_PKEY_CTX_new(pkey, NULL))) in test_EVP_PKEY_check()
1602 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_id(EVP_PKEY_HKDF, NULL))) in test_HKDF()
1639 if (!TEST_ptr(xp = d2i_X509_PUBKEY(NULL, &p, input_len))) in test_X509_PUBKEY_inplace()
1642 if (!TEST_ptr(X509_PUBKEY_get0(xp))) in test_X509_PUBKEY_inplace()
1648 if (!TEST_ptr(xp = d2i_X509_PUBKEY(&xp, &p, input_len))) in test_X509_PUBKEY_inplace()
1682 if (!TEST_ptr(ctx = EVP_CIPHER_CTX_new()) in test_decrypt_null_chunks()
1739 if (!TEST_ptr(x942dh) in test_EVP_PKEY_set1_DH()
1740 || !TEST_ptr(pkcs3dh) in test_EVP_PKEY_set1_DH()
1741 || !TEST_ptr(pkey1) in test_EVP_PKEY_set1_DH()
1742 || !TEST_ptr(pkey2)) in test_EVP_PKEY_set1_DH()
1811 if (!TEST_ptr(tmp)) in test_custom_md_meth()
1821 if (!TEST_ptr(mdctx) in test_custom_md_meth()
1872 if (!TEST_ptr(e = ENGINE_by_id(engine_id))) in test_signatures_with_engine()
1905 if (!TEST_ptr(pkey)) in test_signatures_with_engine()
1918 if (!TEST_ptr(ctx = EVP_MD_CTX_new())) in test_signatures_with_engine()
1931 if (!TEST_ptr(mac = OPENSSL_malloc(maclen))) in test_signatures_with_engine()
1967 if (!TEST_ptr(e = ENGINE_by_id(engine_id))) in test_cipher_with_engine()
1975 if (!TEST_ptr(ctx = EVP_CIPHER_CTX_new()) in test_cipher_with_engine()
1976 || !TEST_ptr(ctx2 = EVP_CIPHER_CTX_new())) in test_cipher_with_engine()
2019 if (!TEST_ptr(custom_pmeth)) in setup_tests()