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()
127 if (!TEST_ptr(BN_copy(q, p)) || !TEST_true(BN_add(q, q, BN_value_one()))) in dh_test()
155 if (!TEST_ptr(_cb = BN_GENCB_new())) in dh_test()
158 if (!TEST_ptr(a = DH_new()) in dh_test()
181 if (!TEST_ptr(b = DH_new())) in dh_test()
184 if (!TEST_ptr(bp = BN_dup(ap)) in dh_test()
185 || !TEST_ptr(bg = BN_dup(ag)) in dh_test()
203 if (!TEST_ptr(c = DHparams_dup(b)) in dh_test()
204 || !TEST_ptr(cpriv_key = BN_dup(bpriv_key)) in dh_test()
210 if (!TEST_ptr(abuf = OPENSSL_malloc(alen)) in dh_test()
215 if (!TEST_ptr(bbuf = OPENSSL_malloc(blen)) in dh_test()
220 if (!TEST_ptr(cbuf = OPENSSL_malloc(clen)) in dh_test()
269 if (!TEST_ptr(p = BN_dup(&ossl_bignum_ffdhe2048_p)) in dh_computekey_range_test()
270 || !TEST_ptr(q = BN_dup(&ossl_bignum_ffdhe2048_q)) in dh_computekey_range_test()
271 || !TEST_ptr(g = BN_dup(&ossl_bignum_const_2)) in dh_computekey_range_test()
272 || !TEST_ptr(dh = DH_new()) in dh_computekey_range_test()
278 || !TEST_ptr(buf = OPENSSL_malloc(sz)) in dh_computekey_range_test()
279 || !TEST_ptr(pub = BN_new()) in dh_computekey_range_test()
280 || !TEST_ptr(priv = BN_new())) in dh_computekey_range_test()
296 if (!TEST_ptr(BN_copy(pub, DH_get0_p(dh))) in dh_computekey_range_test()
592 if (!TEST_ptr(dhA = td->get_param()) in rfc5114_test()
593 || !TEST_ptr(dhB = td->get_param())) in rfc5114_test()
596 if (!TEST_ptr(priv_key = BN_bin2bn(td->xA, td->xA_len, NULL)) in rfc5114_test()
597 || !TEST_ptr(pub_key = BN_bin2bn(td->yA, td->yA_len, NULL)) in rfc5114_test()
601 if (!TEST_ptr(priv_key = BN_bin2bn(td->xB, td->xB_len, NULL)) in rfc5114_test()
602 || !TEST_ptr(pub_key = BN_bin2bn(td->yB, td->yB_len, NULL)) in rfc5114_test()
613 if (!TEST_ptr(Z1 = OPENSSL_malloc((size_t)szA)) in rfc5114_test()
614 || !TEST_ptr(Z2 = OPENSSL_malloc((size_t)szB))) in rfc5114_test()
671 if (!TEST_ptr(a = DH_new_by_nid(NID_ffdhe2048))) in rfc7919_test()
688 if (!TEST_ptr(b = DH_new_by_nid(NID_ffdhe2048))) in rfc7919_test()
696 if (!TEST_int_gt(alen, 0) || !TEST_ptr(abuf = OPENSSL_malloc(alen)) in rfc7919_test()
701 if (!TEST_int_gt(blen, 0) || !TEST_ptr(bbuf = OPENSSL_malloc(blen)) in rfc7919_test()
737 if (!TEST_ptr(dh = DH_new_by_nid(prime_groups[index]))) in dh_test_prime_groups()
740 if (!TEST_ptr(p) || !TEST_ptr(q) || !TEST_ptr(g)) in dh_test_prime_groups()
763 if (!TEST_ptr(paramgen_ctx)) in dh_rfc5114_fix_nid_test()
787 if (!TEST_ptr(paramgen_ctx)) in dh_set_dh_nid_test()
812 if (!TEST_ptr(dh1) in dh_get_nid()
813 || !TEST_ptr(dh2)) in dh_get_nid()
818 if (!TEST_ptr(p) in dh_get_nid()
819 || !TEST_ptr(q) in dh_get_nid()
820 || !TEST_ptr(g) in dh_get_nid()
821 || !TEST_ptr(pcpy = BN_dup(p)) in dh_get_nid()
822 || !TEST_ptr(gcpy = BN_dup(g))) in dh_get_nid()
829 if (!TEST_ptr(DH_get0_q(dh2))) in dh_get_nid()
837 if (!TEST_ptr(gcpy = BN_dup(BN_value_one()))) in dh_get_nid()
846 if (!TEST_ptr(pcpy = BN_dup(p)) in dh_get_nid()
847 || !TEST_ptr(qcpy = BN_dup(q)) in dh_get_nid()
848 || !TEST_ptr(gcpy = BN_dup(g)) in dh_get_nid()
926 ret = TEST_ptr(pkey = d2i_PUBKEY_ex(NULL, &p, sizeof(dh_pub_der), in dh_load_pkcs3_namedgroup_privlen_test()