Lines Matching refs:TEST_true
162 if (!(TEST_true(BN_bntest_rand(a, 1024, 1, 0)) in test_swap()
163 && TEST_true(BN_bntest_rand(b, 1024, 1, 0)) in test_swap()
195 || !TEST_true(BN_get_flags(b, BN_FLG_CONSTTIME)) in test_swap()
203 || !TEST_true(BN_get_flags(a, BN_FLG_CONSTTIME)) in test_swap()
211 || !TEST_true(BN_get_flags(a, BN_FLG_CONSTTIME)) in test_swap()
236 if (!(TEST_true(BN_bntest_rand(a, 512, 0, 0))) in test_sub()
239 && TEST_true(BN_add_word(b, i))) in test_sub()
242 if (!TEST_true(BN_bntest_rand(b, 400 + i - NUM1, 0, 0))) in test_sub()
247 if (!(TEST_true(BN_sub(c, a, b)) in test_sub()
248 && TEST_true(BN_add(c, c, b)) in test_sub()
249 && TEST_true(BN_sub(c, c, a)) in test_sub()
277 if (!(TEST_true(BN_bntest_rand(a, 400, 0, 0)) in test_div_recip()
279 && TEST_true(BN_lshift(a, a, i)) in test_div_recip()
280 && TEST_true(BN_add_word(a, i)))) in test_div_recip()
283 if (!(TEST_true(BN_bntest_rand(b, 50 + 3 * (i - NUM1), 0, 0)))) in test_div_recip()
288 if (!(TEST_true(BN_RECP_CTX_set(recp, b, ctx)) in test_div_recip()
289 && TEST_true(BN_div_recp(d, c, a, recp, ctx)) in test_div_recip()
290 && TEST_true(BN_mul(e, d, b, ctx)) in test_div_recip()
291 && TEST_true(BN_add(d, e, c)) in test_div_recip()
292 && TEST_true(BN_sub(d, d, a)) in test_div_recip()
341 if (TEST_true(BN_div(a, b, a, b, ctx)) in test_signed_mod_replace_ab()
364 if (TEST_true(BN_div(b, a, a, b, ctx)) in test_signed_mod_replace_ba()
388 if (!(TEST_true(BN_bntest_rand(a, 1024, 0, 0)))) in test_mod()
391 if (!(TEST_true(BN_bntest_rand(b, 450 + i * 10, 0, 0)))) in test_mod()
395 if (!(TEST_true(BN_mod(c, a, b, ctx)) in test_mod()
396 && TEST_true(BN_div(d, e, a, b, ctx)) in test_mod()
398 && TEST_true(BN_mul(c, d, b, ctx)) in test_mod()
399 && TEST_true(BN_add(d, c, e)) in test_mod()
476 if (!(TEST_true(BN_bntest_rand(m, 1024, 0, 1)) in test_modexp_mont5()
478 && TEST_true(BN_bntest_rand(a, 1024, 0, 0)))) in test_modexp_mont5()
482 if (!TEST_true(BN_mod_exp_mont_consttime(d, a, p, m, ctx, NULL))) in test_modexp_mont5()
488 if (!(TEST_true(BN_hex2bn(&a, in test_modexp_mont5()
493 && TEST_true(BN_hex2bn(&b, in test_modexp_mont5()
498 && TEST_true(BN_hex2bn(&n, in test_modexp_mont5()
505 if (!(TEST_true(BN_MONT_CTX_set(mont, n, ctx)) in test_modexp_mont5()
506 && TEST_true(BN_mod_mul_montgomery(c, a, b, mont, ctx)) in test_modexp_mont5()
507 && TEST_true(BN_mod_mul_montgomery(d, b, a, mont, ctx)) in test_modexp_mont5()
512 if (!(TEST_true(parse_bigBN(&n, bn1strings)) in test_modexp_mont5()
513 && TEST_true(parse_bigBN(&a, bn2strings)))) in test_modexp_mont5()
517 && TEST_true(BN_MONT_CTX_set(mont, n, ctx)) in test_modexp_mont5()
518 && TEST_true(BN_mod_mul_montgomery(c, a, a, mont, ctx)) in test_modexp_mont5()
519 && TEST_true(BN_mod_mul_montgomery(d, a, b, mont, ctx)) in test_modexp_mont5()
556 if (!(TEST_true(parse_bigBN(&a, ahex)) in test_modexp_mont5()
557 && TEST_true(parse_bigBN(&n, nhex)))) in test_modexp_mont5()
562 && TEST_true(BN_MONT_CTX_set(mont, n, ctx)))) in test_modexp_mont5()
565 if (!TEST_true(BN_mod_mul_montgomery(c, a, a, mont, ctx)) in test_modexp_mont5()
566 || !TEST_true(BN_mod_mul_montgomery(d, a, b, mont, ctx)) in test_modexp_mont5()
571 if (!(TEST_true(BN_hex2bn(&a, in test_modexp_mont5()
575 && TEST_true(BN_hex2bn(&n, in test_modexp_mont5()
578 && TEST_true(BN_MONT_CTX_set(mont, n, ctx)) in test_modexp_mont5()
583 if (!(TEST_true(BN_hex2bn(&a, in test_modexp_mont5()
588 && TEST_true(BN_hex2bn(&b, in test_modexp_mont5()
593 && TEST_true(BN_hex2bn(&n, in test_modexp_mont5()
598 && TEST_true(BN_MONT_CTX_set(mont, n, ctx)) in test_modexp_mont5()
599 && TEST_true(BN_mod_exp_mont_consttime(c, a, b, n, ctx, mont)) in test_modexp_mont5()
600 && TEST_true(BN_mod_exp_mont(d, a, b, n, ctx, mont)) in test_modexp_mont5()
608 if (!(TEST_true(BN_hex2bn(&a, in test_modexp_mont5()
613 && TEST_true(BN_hex2bn(&b, in test_modexp_mont5()
618 && TEST_true(BN_hex2bn(&n, in test_modexp_mont5()
623 && TEST_true(BN_MONT_CTX_set(mont, n, ctx)) in test_modexp_mont5()
624 && TEST_true(BN_mod_exp_mont_consttime(c, a, b, n, ctx, mont)))) in test_modexp_mont5()
666 if (!TEST_true(parse_bigBN(&e, ehex)) in test_modexp_mont5()
667 || !TEST_true(parse_bigBN(&p, phex)) in test_modexp_mont5()
668 || !TEST_true(parse_bigBN(&m, mhex)) in test_modexp_mont5()
669 || !TEST_true(BN_mod_exp_mont_consttime(d, e, p, m, ctx, NULL)) in test_modexp_mont5()
670 || !TEST_true(BN_mod_exp_simple(a, e, p, m, ctx)) in test_modexp_mont5()
676 if (!TEST_true(BN_bntest_rand(p, 1024, 0, 0))) in test_modexp_mont5()
679 if (!TEST_true(BN_mod_exp_mont_consttime(d, a, p, m, ctx, NULL)) in test_modexp_mont5()
688 if (!(TEST_true(BN_one(a)) in test_modexp_mont5()
689 && TEST_true(BN_MONT_CTX_set(mont, m, ctx)))) in test_modexp_mont5()
691 if (!TEST_true(BN_from_montgomery(e, a, mont, ctx)) in test_modexp_mont5()
692 || !TEST_true(BN_mod_exp_mont_consttime(d, e, p, m, ctx, NULL)) in test_modexp_mont5()
693 || !TEST_true(BN_mod_exp_simple(a, e, p, m, ctx)) in test_modexp_mont5()
698 if (!(TEST_true(BN_bntest_rand(e, 1024, 0, 0)) in test_modexp_mont5()
699 && TEST_true(BN_mod_exp_mont_consttime(d, e, p, m, ctx, NULL)) in test_modexp_mont5()
700 && TEST_true(BN_mod_exp_simple(a, e, p, m, ctx)) in test_modexp_mont5()
731 if (!(TEST_true(BN_rand(a, 512, 0, 0)) in test_gf2m_add()
736 if (!(TEST_true(BN_GF2m_add(c, a, b)) in test_gf2m_add()
741 if (!(TEST_true(BN_GF2m_add(c, c, c)) in test_gf2m_add()
767 if (!(TEST_true(BN_GF2m_arr2poly(p0, b[0])) in test_gf2m_mod()
768 && TEST_true(BN_GF2m_arr2poly(p1, b[1])))) in test_gf2m_mod()
772 if (!TEST_true(BN_bntest_rand(a, 1024, 0, 0))) in test_gf2m_mod()
775 if (!(TEST_true(BN_GF2m_mod(c, a, b[j])) in test_gf2m_mod()
776 && TEST_true(BN_GF2m_add(d, a, c)) in test_gf2m_mod()
777 && TEST_true(BN_GF2m_mod(e, d, b[j])) in test_gf2m_mod()
811 if (!(TEST_true(BN_GF2m_arr2poly(p0, b[0])) in test_gf2m_mul()
812 && TEST_true(BN_GF2m_arr2poly(p1, b[1])))) in test_gf2m_mul()
816 if (!(TEST_true(BN_bntest_rand(a, 1024, 0, 0)) in test_gf2m_mul()
817 && TEST_true(BN_bntest_rand(c, 1024, 0, 0)) in test_gf2m_mul()
818 && TEST_true(BN_bntest_rand(d, 1024, 0, 0)))) in test_gf2m_mul()
821 if (!(TEST_true(BN_GF2m_mod_mul(e, a, c, b[j], ctx)) in test_gf2m_mul()
822 && TEST_true(BN_GF2m_add(f, a, d)) in test_gf2m_mul()
823 && TEST_true(BN_GF2m_mod_mul(g, f, c, b[j], ctx)) in test_gf2m_mul()
824 && TEST_true(BN_GF2m_mod_mul(h, d, c, b[j], ctx)) in test_gf2m_mul()
825 && TEST_true(BN_GF2m_add(f, e, g)) in test_gf2m_mul()
826 && TEST_true(BN_GF2m_add(f, f, h)) in test_gf2m_mul()
859 if (!(TEST_true(BN_GF2m_arr2poly(p0, b[0])) in test_gf2m_sqr()
860 && TEST_true(BN_GF2m_arr2poly(p1, b[1])))) in test_gf2m_sqr()
864 if (!TEST_true(BN_bntest_rand(a, 1024, 0, 0))) in test_gf2m_sqr()
867 if (!(TEST_true(BN_GF2m_mod_sqr(c, a, b[j], ctx)) in test_gf2m_sqr()
868 && TEST_true(BN_copy(d, a)) in test_gf2m_sqr()
869 && TEST_true(BN_GF2m_mod_mul(d, a, d, b[j], ctx)) in test_gf2m_sqr()
870 && TEST_true(BN_GF2m_add(d, c, d)) in test_gf2m_sqr()
898 if (!(TEST_true(BN_GF2m_arr2poly(p0, b[0])) in test_gf2m_modinv()
899 && TEST_true(BN_GF2m_arr2poly(p1, b[1])))) in test_gf2m_modinv()
903 if (!TEST_true(BN_bntest_rand(a, 512, 0, 0))) in test_gf2m_modinv()
906 if (!(TEST_true(BN_GF2m_mod_inv(c, a, b[j], ctx)) in test_gf2m_modinv()
907 && TEST_true(BN_GF2m_mod_mul(d, a, c, b[j], ctx)) in test_gf2m_modinv()
938 if (!(TEST_true(BN_GF2m_arr2poly(p0, b[0])) in test_gf2m_moddiv()
939 && TEST_true(BN_GF2m_arr2poly(p1, b[1])))) in test_gf2m_moddiv()
943 if (!(TEST_true(BN_bntest_rand(a, 512, 0, 0)) in test_gf2m_moddiv()
944 && TEST_true(BN_bntest_rand(c, 512, 0, 0)))) in test_gf2m_moddiv()
947 if (!(TEST_true(BN_GF2m_mod_div(d, a, c, b[j], ctx)) in test_gf2m_moddiv()
948 && TEST_true(BN_GF2m_mod_mul(e, d, c, b[j], ctx)) in test_gf2m_moddiv()
949 && TEST_true(BN_GF2m_mod_div(f, a, e, b[j], ctx)) in test_gf2m_moddiv()
982 if (!(TEST_true(BN_GF2m_arr2poly(p0, b[0])) in test_gf2m_modexp()
983 && TEST_true(BN_GF2m_arr2poly(p1, b[1])))) in test_gf2m_modexp()
987 if (!(TEST_true(BN_bntest_rand(a, 512, 0, 0)) in test_gf2m_modexp()
988 && TEST_true(BN_bntest_rand(c, 512, 0, 0)) in test_gf2m_modexp()
989 && TEST_true(BN_bntest_rand(d, 512, 0, 0)))) in test_gf2m_modexp()
992 if (!(TEST_true(BN_GF2m_mod_exp(e, a, c, b[j], ctx)) in test_gf2m_modexp()
993 && TEST_true(BN_GF2m_mod_exp(f, a, d, b[j], ctx)) in test_gf2m_modexp()
994 && TEST_true(BN_GF2m_mod_mul(e, e, f, b[j], ctx)) in test_gf2m_modexp()
995 && TEST_true(BN_add(f, c, d)) in test_gf2m_modexp()
996 && TEST_true(BN_GF2m_mod_exp(f, a, f, b[j], ctx)) in test_gf2m_modexp()
997 && TEST_true(BN_GF2m_add(f, e, f)) in test_gf2m_modexp()
1030 if (!(TEST_true(BN_GF2m_arr2poly(p0, b[0])) in test_gf2m_modsqrt()
1031 && TEST_true(BN_GF2m_arr2poly(p1, b[1])))) in test_gf2m_modsqrt()
1035 if (!TEST_true(BN_bntest_rand(a, 512, 0, 0))) in test_gf2m_modsqrt()
1039 if (!(TEST_true(BN_GF2m_mod(c, a, b[j])) in test_gf2m_modsqrt()
1040 && TEST_true(BN_GF2m_mod_sqrt(d, a, b[j], ctx)) in test_gf2m_modsqrt()
1041 && TEST_true(BN_GF2m_mod_sqr(e, d, b[j], ctx)) in test_gf2m_modsqrt()
1042 && TEST_true(BN_GF2m_add(f, c, e)) in test_gf2m_modsqrt()
1074 if (!(TEST_true(BN_GF2m_arr2poly(p0, b[0])) in test_gf2m_modsolvequad()
1075 && TEST_true(BN_GF2m_arr2poly(p1, b[1])))) in test_gf2m_modsolvequad()
1079 if (!TEST_true(BN_bntest_rand(a, 512, 0, 0))) in test_gf2m_modsolvequad()
1085 if (!(TEST_true(BN_GF2m_mod_sqr(d, c, b[j], ctx)) in test_gf2m_modsolvequad()
1086 && TEST_true(BN_GF2m_add(d, c, d)) in test_gf2m_modsolvequad()
1087 && TEST_true(BN_GF2m_mod(e, a, b[j])) in test_gf2m_modsolvequad()
1088 && TEST_true(BN_GF2m_add(e, e, d)) in test_gf2m_modsolvequad()
1135 if (!TEST_true(BN_generate_prime_ex(b, 512, 0, NULL, NULL, NULL))) in test_kronecker()
1140 if (!TEST_true(BN_bntest_rand(a, 512, 0, 0))) in test_kronecker()
1145 if (!TEST_true(BN_copy(t, b))) in test_kronecker()
1148 if (!TEST_true(BN_sub_word(t, 1))) in test_kronecker()
1150 if (!TEST_true(BN_rshift1(t, t))) in test_kronecker()
1155 if (!TEST_true(BN_mod_exp_recp(r, a, t, b, ctx))) in test_kronecker()
1164 if (!TEST_true(BN_add_word(r, 1))) in test_kronecker()
1204 if (!TEST_true(BN_add(ret, a, b)) in file_sum()
1206 || !TEST_true(BN_sub(ret, sum, a)) in file_sum()
1208 || !TEST_true(BN_sub(ret, sum, b)) in file_sum()
1217 if (!TEST_true(BN_copy(ret, a)) in file_sum()
1218 || !TEST_true(BN_add(ret, ret, b)) in file_sum()
1220 || !TEST_true(BN_copy(ret, b)) in file_sum()
1221 || !TEST_true(BN_add(ret, a, ret)) in file_sum()
1223 || !TEST_true(BN_copy(ret, sum)) in file_sum()
1224 || !TEST_true(BN_sub(ret, ret, a)) in file_sum()
1226 || !TEST_true(BN_copy(ret, a)) in file_sum()
1227 || !TEST_true(BN_sub(ret, sum, ret)) in file_sum()
1229 || !TEST_true(BN_copy(ret, sum)) in file_sum()
1230 || !TEST_true(BN_sub(ret, ret, b)) in file_sum()
1232 || !TEST_true(BN_copy(ret, b)) in file_sum()
1233 || !TEST_true(BN_sub(ret, sum, ret)) in file_sum()
1245 if (!TEST_true(BN_uadd(ret, a, b)) in file_sum()
1247 || !TEST_true(BN_usub(ret, sum, a)) in file_sum()
1249 || !TEST_true(BN_usub(ret, sum, b)) in file_sum()
1257 if (!TEST_true(BN_copy(ret, a)) in file_sum()
1258 || !TEST_true(BN_uadd(ret, ret, b)) in file_sum()
1260 || !TEST_true(BN_copy(ret, b)) in file_sum()
1261 || !TEST_true(BN_uadd(ret, a, ret)) in file_sum()
1263 || !TEST_true(BN_copy(ret, sum)) in file_sum()
1264 || !TEST_true(BN_usub(ret, ret, a)) in file_sum()
1266 || !TEST_true(BN_copy(ret, a)) in file_sum()
1267 || !TEST_true(BN_usub(ret, sum, ret)) in file_sum()
1269 || !TEST_true(BN_copy(ret, sum)) in file_sum()
1270 || !TEST_true(BN_usub(ret, ret, b)) in file_sum()
1272 || !TEST_true(BN_copy(ret, b)) in file_sum()
1273 || !TEST_true(BN_usub(ret, sum, ret)) in file_sum()
1283 if (!TEST_true(BN_copy(ret, a)) in file_sum()
1284 || !TEST_true(BN_add_word(ret, b_word)) in file_sum()
1286 || !TEST_true(BN_copy(ret, sum)) in file_sum()
1287 || !TEST_true(BN_sub_word(ret, b_word)) in file_sum()
1317 if (!TEST_true(BN_set_word(two, 2)) in file_lshift1()
1318 || !TEST_true(BN_add(ret, a, a)) in file_lshift1()
1320 || !TEST_true(BN_mul(ret, a, two, ctx)) in file_lshift1()
1322 || !TEST_true(BN_div(ret, remainder, lshift1, two, ctx)) in file_lshift1()
1325 || !TEST_true(BN_lshift1(ret, a)) in file_lshift1()
1327 || !TEST_true(BN_rshift1(ret, lshift1)) in file_lshift1()
1329 || !TEST_true(BN_rshift1(ret, lshift1)) in file_lshift1()
1334 if (!TEST_true(BN_set_bit(lshift1, 0)) in file_lshift1()
1335 || !TEST_true(BN_div(ret, NULL /* rem */ , lshift1, two, ctx)) in file_lshift1()
1337 || !TEST_true(BN_rshift1(ret, lshift1)) in file_lshift1()
1364 if (!TEST_true(BN_lshift(ret, a, n)) in file_lshift()
1366 || !TEST_true(BN_rshift(ret, lshift, n)) in file_lshift()
1389 if (!TEST_true(BN_rshift(ret, a, n)) in file_rshift()
1395 if (!TEST_true(BN_rshift1(ret, a)) in file_rshift()
1422 if (!TEST_true(BN_sqr(ret, a, ctx)) in file_square()
1424 || !TEST_true(BN_mul(ret, a, a, ctx)) in file_square()
1426 || !TEST_true(BN_div(ret, remainder, square, a, ctx)) in file_square()
1433 if (!TEST_true(BN_sqrt(ret, square, ctx)) in file_square()
1440 || !TEST_true(BN_copy(tmp, square))) in file_square()
1484 if (!TEST_true(BN_mul(ret, a, b, ctx)) in file_product()
1486 || !TEST_true(BN_div(ret, remainder, product, a, ctx)) in file_product()
1489 || !TEST_true(BN_div(ret, remainder, product, b, ctx)) in file_product()
1521 if (!TEST_true(BN_div(ret, ret2, a, b, ctx)) in file_quotient()
1524 || !TEST_true(BN_mul(ret, quotient, b, ctx)) in file_quotient()
1525 || !TEST_true(BN_add(ret, ret, remainder)) in file_quotient()
1569 if (!TEST_true(BN_copy(nnmod, remainder)) in file_quotient()
1571 && !TEST_true(BN_add(nnmod, nnmod, b))) in file_quotient()
1572 || !TEST_true(BN_nnmod(ret, a, b, ctx)) in file_quotient()
1601 if (!TEST_true(BN_mod_mul(ret, a, b, m, ctx)) in file_modmul()
1612 || !TEST_true(BN_MONT_CTX_set(mont, m, ctx)) in file_modmul()
1613 || !TEST_true(BN_nnmod(a_tmp, a, m, ctx)) in file_modmul()
1614 || !TEST_true(BN_nnmod(b_tmp, b, m, ctx)) in file_modmul()
1615 || !TEST_true(BN_to_montgomery(a_tmp, a_tmp, mont, ctx)) in file_modmul()
1616 || !TEST_true(BN_to_montgomery(b_tmp, b_tmp, mont, ctx)) in file_modmul()
1617 || !TEST_true(BN_mod_mul_montgomery(ret, a_tmp, b_tmp, in file_modmul()
1619 || !TEST_true(BN_from_montgomery(ret, ret, mont, ctx)) in file_modmul()
1655 if (!TEST_true(BN_mod_exp(ret, a, e, m, ctx)) in file_modexp()
1660 if (!TEST_true(BN_mod_exp_mont(ret, a, e, m, ctx, NULL)) in file_modexp()
1662 || !TEST_true(BN_mod_exp_mont_consttime(ret, a, e, m, in file_modexp()
1678 if (!TEST_true(BN_mod_exp(d, a, b, c, ctx)) in file_modexp()
1679 || !TEST_true(BN_mul(e, a, a, ctx)) in file_modexp()
1707 if (!TEST_true(BN_exp(ret, a, e, ctx)) in file_exp()
1743 || !TEST_true(BN_sub(ret2, p, ret))) in file_modsqrt()
1772 if (!TEST_true(BN_gcd(ret, a, b, ctx)) in file_gcd()
1808 if (!TEST_true(BN_rand(n, bytes * 8, TOP_BIT_ON, BOTTOM_BIT_NOTOUCH))) in test_bn2padded()
1986 if (!TEST_true(BN_asc2bn(&bn, "0")) in test_asc2bn()
1991 if (!TEST_true(BN_asc2bn(&bn, "256")) in test_asc2bn()
1996 if (!TEST_true(BN_asc2bn(&bn, "-42")) in test_asc2bn()
2001 if (!TEST_true(BN_asc2bn(&bn, "0x1234")) in test_asc2bn()
2006 if (!TEST_true(BN_asc2bn(&bn, "0X1234")) in test_asc2bn()
2011 if (!TEST_true(BN_asc2bn(&bn, "-0xabcd")) in test_asc2bn()
2016 if (!TEST_true(BN_asc2bn(&bn, "-0")) in test_asc2bn()
2021 if (!TEST_true(BN_asc2bn(&bn, "123trailing garbage is ignored")) in test_asc2bn()
2051 || !TEST_true(BN_asc2bn(&bn, test->base10))) in test_mpi()
2087 || !TEST_true(BN_rand(bn, 1, 0 /* top */ , 0 /* bottom */ )) in test_rand()
2090 || !TEST_true(BN_rand(bn, 1, -1 /* top */ , 1 /* bottom */ )) in test_rand()
2092 || !TEST_true(BN_rand(bn, 2, 1 /* top */ , 0 /* bottom */ )) in test_rand()
2115 if (!TEST_true(BN_set_word(a, 1))) in test_negzero()
2119 if (!TEST_true(BN_mul(c, a, b, ctx))) in test_negzero()
2134 if (!TEST_true(BN_set_word(numerator, 1)) in test_negzero()
2135 || !TEST_true(BN_set_word(denominator, 2))) in test_negzero()
2138 if (!TEST_true(BN_div(a, b, numerator, denominator, ctx)) in test_negzero()
2144 if (!TEST_true(BN_set_word(denominator, 1)) in test_negzero()
2145 || !TEST_true(BN_div(a, b, numerator, denominator, ctx)) in test_negzero()
2211 if (!TEST_true(BN_set_word(b, 16))) in test_badmod()
2248 if (!TEST_true(BN_mod_exp(r, a, zero, BN_value_one(), NULL)) in test_expmodzero()
2250 || !TEST_true(BN_mod_exp_mont(r, a, zero, BN_value_one(), in test_expmodzero()
2253 || !TEST_true(BN_mod_exp_mont_consttime(r, a, zero, in test_expmodzero()
2257 || !TEST_true(BN_mod_exp_mont_word(r, 42, zero, in test_expmodzero()
2283 || !TEST_true(BN_set_word(a, 1)) in test_expmodone()
2284 || !TEST_true(BN_set_word(p, 0)) in test_expmodone()
2285 || !TEST_true(BN_set_word(m, 1))) in test_expmodone()
2290 if (!TEST_true(BN_mod_exp(r, a, p, m, NULL)) in test_expmodone()
2292 || !TEST_true(BN_mod_exp_mont(r, a, p, m, NULL, NULL)) in test_expmodone()
2294 || !TEST_true(BN_mod_exp_mont_consttime(r, a, p, m, NULL, NULL)) in test_expmodone()
2296 || !TEST_true(BN_mod_exp_mont_word(r, 1, p, m, NULL, NULL)) in test_expmodone()
2298 || !TEST_true(BN_mod_exp_simple(r, a, p, m, NULL)) in test_expmodone()
2300 || !TEST_true(BN_mod_exp_recp(r, a, p, m, NULL)) in test_expmodone()
2330 if (!TEST_true(BN_generate_prime_ex(r, kBits, 0, in test_smallprime()
2355 if (!TEST_true(BN_generate_prime_ex(r, kBits, 1, in test_smallsafeprime()
2379 if (!TEST_true(BN_set_word(r, primes[i])) in test_is_prime()
2403 if (!TEST_true(BN_set_word(r, not_primes[i])) in test_not_prime()
2488 if (!TEST_true(test_ctx_set_ct_flag(c)) in test_ctx_consttime_flag()
2489 || !TEST_true(test_ctx_check_ct_flag(c))) in test_ctx_consttime_flag()
2510 if (!TEST_true(BN_generate_prime_ex(a, 1024, 0, NULL, NULL, NULL))) in test_gcd_prime()
2513 if (!TEST_true(BN_generate_prime_ex(b, 1024, 0, in test_gcd_prime()
2515 || !TEST_true(BN_gcd(gcd, a, b, ctx)) in test_gcd_prime()
2516 || !TEST_true(BN_is_one(gcd))) in test_gcd_prime()
2747 || !TEST_true(BN_dec2bn(&base, test->base)) in test_mod_exp()
2748 || !TEST_true(BN_dec2bn(&exponent, test->exp)) in test_mod_exp()
2749 || !TEST_true(BN_dec2bn(&modulo, test->mod))) in test_mod_exp()
2781 || !TEST_true(BN_dec2bn(&base, test->base)) in test_mod_exp_consttime()
2782 || !TEST_true(BN_dec2bn(&exponent, test->exp)) in test_mod_exp_consttime()
2783 || !TEST_true(BN_dec2bn(&modulo, test->mod))) in test_mod_exp_consttime()
2829 if (!TEST_true(BN_one(exp_a1)) in test_mod_exp2_mont()
2830 || !TEST_true(BN_one(exp_p1)) in test_mod_exp2_mont()
2831 || !TEST_true(BN_one(exp_a2)) in test_mod_exp2_mont()
2832 || !TEST_true(BN_one(exp_p2))) in test_mod_exp2_mont()