Lines Matching refs:BN_new

152     if (!TEST_ptr(a = BN_new())  in test_swap()
153 || !TEST_ptr(b = BN_new()) in test_swap()
154 || !TEST_ptr(c = BN_new()) in test_swap()
155 || !TEST_ptr(d = BN_new())) in test_swap()
225 if (!TEST_ptr(a = BN_new()) in test_sub()
226 || !TEST_ptr(b = BN_new()) in test_sub()
227 || !TEST_ptr(c = BN_new())) in test_sub()
263 if (!TEST_ptr(a = BN_new()) in test_div_recip()
264 || !TEST_ptr(b = BN_new()) in test_div_recip()
265 || !TEST_ptr(c = BN_new()) in test_div_recip()
266 || !TEST_ptr(d = BN_new()) in test_div_recip()
267 || !TEST_ptr(e = BN_new()) in test_div_recip()
314 BIGNUM *bn = BN_new(); in set_signed_bn()
377 if (!TEST_ptr(a = BN_new()) in test_mod()
378 || !TEST_ptr(b = BN_new()) in test_mod()
379 || !TEST_ptr(c = BN_new()) in test_mod()
380 || !TEST_ptr(d = BN_new()) in test_mod()
381 || !TEST_ptr(e = BN_new())) in test_mod()
460 if (!TEST_ptr(a = BN_new()) in test_modexp_mont5()
461 || !TEST_ptr(p = BN_new()) in test_modexp_mont5()
462 || !TEST_ptr(m = BN_new()) in test_modexp_mont5()
463 || !TEST_ptr(d = BN_new()) in test_modexp_mont5()
464 || !TEST_ptr(e = BN_new()) in test_modexp_mont5()
465 || !TEST_ptr(b = BN_new()) in test_modexp_mont5()
466 || !TEST_ptr(n = BN_new()) in test_modexp_mont5()
467 || !TEST_ptr(c = BN_new()) in test_modexp_mont5()
721 if (!TEST_ptr(a = BN_new()) in test_gf2m_add()
722 || !TEST_ptr(b = BN_new()) in test_gf2m_add()
723 || !TEST_ptr(c = BN_new())) in test_gf2m_add()
755 if (!TEST_ptr(a = BN_new()) in test_gf2m_mod()
756 || !TEST_ptr(b[0] = BN_new()) in test_gf2m_mod()
757 || !TEST_ptr(b[1] = BN_new()) in test_gf2m_mod()
758 || !TEST_ptr(c = BN_new()) in test_gf2m_mod()
759 || !TEST_ptr(d = BN_new()) in test_gf2m_mod()
760 || !TEST_ptr(e = BN_new())) in test_gf2m_mod()
796 if (!TEST_ptr(a = BN_new()) in test_gf2m_mul()
797 || !TEST_ptr(b[0] = BN_new()) in test_gf2m_mul()
798 || !TEST_ptr(b[1] = BN_new()) in test_gf2m_mul()
799 || !TEST_ptr(c = BN_new()) in test_gf2m_mul()
800 || !TEST_ptr(d = BN_new()) in test_gf2m_mul()
801 || !TEST_ptr(e = BN_new()) in test_gf2m_mul()
802 || !TEST_ptr(f = BN_new()) in test_gf2m_mul()
803 || !TEST_ptr(g = BN_new()) in test_gf2m_mul()
804 || !TEST_ptr(h = BN_new())) in test_gf2m_mul()
848 if (!TEST_ptr(a = BN_new()) in test_gf2m_sqr()
849 || !TEST_ptr(b[0] = BN_new()) in test_gf2m_sqr()
850 || !TEST_ptr(b[1] = BN_new()) in test_gf2m_sqr()
851 || !TEST_ptr(c = BN_new()) in test_gf2m_sqr()
852 || !TEST_ptr(d = BN_new())) in test_gf2m_sqr()
887 if (!TEST_ptr(a = BN_new()) in test_gf2m_modinv()
888 || !TEST_ptr(b[0] = BN_new()) in test_gf2m_modinv()
889 || !TEST_ptr(b[1] = BN_new()) in test_gf2m_modinv()
890 || !TEST_ptr(c = BN_new()) in test_gf2m_modinv()
891 || !TEST_ptr(d = BN_new())) in test_gf2m_modinv()
933 if (!TEST_ptr(a = BN_new()) in test_gf2m_moddiv()
934 || !TEST_ptr(b[0] = BN_new()) in test_gf2m_moddiv()
935 || !TEST_ptr(b[1] = BN_new()) in test_gf2m_moddiv()
936 || !TEST_ptr(c = BN_new()) in test_gf2m_moddiv()
937 || !TEST_ptr(d = BN_new()) in test_gf2m_moddiv()
938 || !TEST_ptr(e = BN_new()) in test_gf2m_moddiv()
939 || !TEST_ptr(f = BN_new())) in test_gf2m_moddiv()
977 if (!TEST_ptr(a = BN_new()) in test_gf2m_modexp()
978 || !TEST_ptr(b[0] = BN_new()) in test_gf2m_modexp()
979 || !TEST_ptr(b[1] = BN_new()) in test_gf2m_modexp()
980 || !TEST_ptr(c = BN_new()) in test_gf2m_modexp()
981 || !TEST_ptr(d = BN_new()) in test_gf2m_modexp()
982 || !TEST_ptr(e = BN_new()) in test_gf2m_modexp()
983 || !TEST_ptr(f = BN_new())) in test_gf2m_modexp()
1025 if (!TEST_ptr(a = BN_new()) in test_gf2m_modsqrt()
1026 || !TEST_ptr(b[0] = BN_new()) in test_gf2m_modsqrt()
1027 || !TEST_ptr(b[1] = BN_new()) in test_gf2m_modsqrt()
1028 || !TEST_ptr(c = BN_new()) in test_gf2m_modsqrt()
1029 || !TEST_ptr(d = BN_new()) in test_gf2m_modsqrt()
1030 || !TEST_ptr(e = BN_new()) in test_gf2m_modsqrt()
1031 || !TEST_ptr(f = BN_new())) in test_gf2m_modsqrt()
1070 if (!TEST_ptr(a = BN_new()) in test_gf2m_modsolvequad()
1071 || !TEST_ptr(b[0] = BN_new()) in test_gf2m_modsolvequad()
1072 || !TEST_ptr(b[1] = BN_new()) in test_gf2m_modsolvequad()
1073 || !TEST_ptr(c = BN_new()) in test_gf2m_modsolvequad()
1074 || !TEST_ptr(d = BN_new()) in test_gf2m_modsolvequad()
1075 || !TEST_ptr(e = BN_new())) in test_gf2m_modsolvequad()
1123 if (!TEST_ptr(a = BN_new()) in test_kronecker()
1124 || !TEST_ptr(b = BN_new()) in test_kronecker()
1125 || !TEST_ptr(r = BN_new()) in test_kronecker()
1126 || !TEST_ptr(t = BN_new())) in test_kronecker()
1205 || !TEST_ptr(ret = BN_new())) in file_sum()
1313 || !TEST_ptr(zero = BN_new()) in file_lshift1()
1314 || !TEST_ptr(ret = BN_new()) in file_lshift1()
1315 || !TEST_ptr(two = BN_new()) in file_lshift1()
1316 || !TEST_ptr(remainder = BN_new())) in file_lshift1()
1364 || !TEST_ptr(ret = BN_new()) in file_lshift()
1389 || !TEST_ptr(ret = BN_new()) in file_rshift()
1420 || !TEST_ptr(zero = BN_new()) in file_square()
1421 || !TEST_ptr(ret = BN_new()) in file_square()
1422 || !TEST_ptr(remainder = BN_new())) in file_square()
1443 if (!TEST_ptr(tmp = BN_new()) in file_square()
1481 || !TEST_ptr(ret = BN_new()) in file_product()
1482 || !TEST_ptr(remainder = BN_new()) in file_product()
1483 || !TEST_ptr(zero = BN_new())) in file_product()
1520 || !TEST_ptr(ret = BN_new()) in file_quotient()
1521 || !TEST_ptr(ret2 = BN_new()) in file_quotient()
1522 || !TEST_ptr(nnmod = BN_new())) in file_quotient()
1602 || !TEST_ptr(ret = BN_new())) in file_modmul()
1612 BIGNUM *a_tmp = BN_new(); in file_modmul()
1613 BIGNUM *b_tmp = BN_new(); in file_modmul()
1655 || !TEST_ptr(ret = BN_new()) in file_modexp()
1656 || !TEST_ptr(d = BN_new())) in file_modexp()
1708 || !TEST_ptr(ret = BN_new())) in file_exp()
1732 || !TEST_ptr(ret = BN_new()) in file_modsqrt()
1733 || !TEST_ptr(ret2 = BN_new())) in file_modsqrt()
1773 || !TEST_ptr(ret = BN_new())) in file_gcd()
1797 if (!TEST_ptr((n = BN_new()))) in test_bn2padded()
1987 if (!TEST_ptr(bn = BN_new())) in test_asc2bn()
2054 if (!TEST_ptr(bn = BN_new()) in test_mpi()
2085 if (!TEST_ptr(bn = BN_new())) in test_rand()
2141 || !TEST_ptr(rng = BN_new()) in test_rand_range_single()
2142 || !TEST_ptr(val = BN_new()) in test_rand_range_single()
2192 if (!TEST_ptr(a = BN_new()) in test_negzero()
2193 || !TEST_ptr(b = BN_new()) in test_negzero()
2194 || !TEST_ptr(c = BN_new()) in test_negzero()
2195 || !TEST_ptr(d = BN_new())) in test_negzero()
2210 if (!TEST_ptr(numerator = BN_new()) in test_negzero()
2211 || !TEST_ptr(denominator = BN_new())) in test_negzero()
2261 if (!TEST_ptr(a = BN_new()) in test_badmod()
2262 || !TEST_ptr(b = BN_new()) in test_badmod()
2263 || !TEST_ptr(zero = BN_new()) in test_badmod()
2326 if (!TEST_ptr(zero = BN_new()) in test_expmodzero()
2327 || !TEST_ptr(a = BN_new()) in test_expmodzero()
2328 || !TEST_ptr(r = BN_new())) in test_expmodzero()
2357 BIGNUM *r = BN_new(); in test_expmodone()
2358 BIGNUM *a = BN_new(); in test_expmodone()
2359 BIGNUM *p = BN_new(); in test_expmodone()
2360 BIGNUM *m = BN_new(); in test_expmodone()
2406 if (!TEST_ptr(r = BN_new())) in test_smallprime()
2431 if (!TEST_ptr(r = BN_new())) in test_smallsafeprime()
2459 if (!TEST_ptr(r = BN_new())) in test_is_prime()
2483 if (!TEST_ptr(r = BN_new())) in test_not_prime()
2589 if (!TEST_ptr(a = BN_new()) in test_gcd_prime()
2590 || !TEST_ptr(b = BN_new()) in test_gcd_prime()
2591 || !TEST_ptr(gcd = BN_new())) in test_gcd_prime()
2830 if (!TEST_ptr(result = BN_new()) in test_mod_exp()
2864 if (!TEST_ptr(result = BN_new()) in test_mod_exp_consttime()
2905 if (!TEST_ptr(exp_result = BN_new()) in test_mod_exp2_mont()
2906 || !TEST_ptr(exp_a1 = BN_new()) in test_mod_exp2_mont()
2907 || !TEST_ptr(exp_p1 = BN_new()) in test_mod_exp2_mont()
2908 || !TEST_ptr(exp_a2 = BN_new()) in test_mod_exp2_mont()
2909 || !TEST_ptr(exp_p2 = BN_new()) in test_mod_exp2_mont()
2910 || !TEST_ptr(exp_m = BN_new())) in test_mod_exp2_mont()
2950 if (!TEST_ptr(r = BN_new())) in test_mod_inverse()
2988 if (!TEST_ptr(r = BN_new())) in test_mod_exp_alias()