Lines Matching refs:TEST_ptr
57 if (!TEST_ptr(dh = DH_new()) in dh_test()
58 || !TEST_ptr(p = BN_new()) in dh_test()
59 || !TEST_ptr(q = BN_new()) in dh_test()
60 || !TEST_ptr(g = BN_new()) in dh_test()
61 || !TEST_ptr(priv_key = BN_new())) in dh_test()
132 if (!TEST_ptr(_cb = BN_GENCB_new())) in dh_test()
135 if (!TEST_ptr(a = DH_new()) in dh_test()
158 if (!TEST_ptr(b = DH_new())) in dh_test()
161 if (!TEST_ptr(bp = BN_dup(ap)) in dh_test()
162 || !TEST_ptr(bg = BN_dup(ag)) in dh_test()
180 if (!TEST_ptr(c = DHparams_dup(b)) in dh_test()
181 || !TEST_ptr(cpriv_key = BN_dup(bpriv_key)) in dh_test()
187 if (!TEST_ptr(abuf = OPENSSL_malloc(alen)) in dh_test()
192 if (!TEST_ptr(bbuf = OPENSSL_malloc(blen)) in dh_test()
197 if (!TEST_ptr(cbuf = OPENSSL_malloc(clen)) in dh_test()
246 if (!TEST_ptr(p = BN_dup(&ossl_bignum_ffdhe2048_p)) in dh_computekey_range_test()
247 || !TEST_ptr(q = BN_dup(&ossl_bignum_ffdhe2048_q)) in dh_computekey_range_test()
248 || !TEST_ptr(g = BN_dup(&ossl_bignum_const_2)) in dh_computekey_range_test()
249 || !TEST_ptr(dh = DH_new()) in dh_computekey_range_test()
255 || !TEST_ptr(buf = OPENSSL_malloc(sz)) in dh_computekey_range_test()
256 || !TEST_ptr(pub = BN_new()) in dh_computekey_range_test()
257 || !TEST_ptr(priv = BN_new())) in dh_computekey_range_test()
273 if (!TEST_ptr(BN_copy(pub, DH_get0_p(dh))) in dh_computekey_range_test()
569 if (!TEST_ptr(dhA = td->get_param()) in rfc5114_test()
570 || !TEST_ptr(dhB = td->get_param())) in rfc5114_test()
573 if (!TEST_ptr(priv_key = BN_bin2bn(td->xA, td->xA_len, NULL)) in rfc5114_test()
574 || !TEST_ptr(pub_key = BN_bin2bn(td->yA, td->yA_len, NULL)) in rfc5114_test()
578 if (!TEST_ptr(priv_key = BN_bin2bn(td->xB, td->xB_len, NULL)) in rfc5114_test()
579 || !TEST_ptr(pub_key = BN_bin2bn(td->yB, td->yB_len, NULL)) in rfc5114_test()
590 if (!TEST_ptr(Z1 = OPENSSL_malloc((size_t)szA)) in rfc5114_test()
591 || !TEST_ptr(Z2 = OPENSSL_malloc((size_t)szB))) in rfc5114_test()
648 if (!TEST_ptr(a = DH_new_by_nid(NID_ffdhe2048))) in rfc7919_test()
665 if (!TEST_ptr(b = DH_new_by_nid(NID_ffdhe2048))) in rfc7919_test()
673 if (!TEST_int_gt(alen, 0) || !TEST_ptr(abuf = OPENSSL_malloc(alen)) in rfc7919_test()
678 if (!TEST_int_gt(blen, 0) || !TEST_ptr(bbuf = OPENSSL_malloc(blen)) in rfc7919_test()
714 if (!TEST_ptr(dh = DH_new_by_nid(prime_groups[index]))) in dh_test_prime_groups()
717 if (!TEST_ptr(p) || !TEST_ptr(q) || !TEST_ptr(g)) in dh_test_prime_groups()
740 if (!TEST_ptr(paramgen_ctx)) in dh_rfc5114_fix_nid_test()
764 if (!TEST_ptr(paramgen_ctx)) in dh_set_dh_nid_test()
789 if (!TEST_ptr(dh1) in dh_get_nid()
790 || !TEST_ptr(dh2)) in dh_get_nid()
795 if (!TEST_ptr(p) in dh_get_nid()
796 || !TEST_ptr(q) in dh_get_nid()
797 || !TEST_ptr(g) in dh_get_nid()
798 || !TEST_ptr(pcpy = BN_dup(p)) in dh_get_nid()
799 || !TEST_ptr(gcpy = BN_dup(g))) in dh_get_nid()
806 if (!TEST_ptr(DH_get0_q(dh2))) in dh_get_nid()
814 if (!TEST_ptr(gcpy = BN_dup(BN_value_one()))) in dh_get_nid()
823 if (!TEST_ptr(pcpy = BN_dup(p)) in dh_get_nid()
824 || !TEST_ptr(qcpy = BN_dup(q)) in dh_get_nid()
825 || !TEST_ptr(gcpy = BN_dup(g)) in dh_get_nid()
903 ret = TEST_ptr(pkey = d2i_PUBKEY_ex(NULL, &p, sizeof(dh_pub_der), in dh_load_pkcs3_namedgroup_privlen_test()