Lines Matching refs:TEST_true
65 if (!TEST_true(BN_rand(a, 1024, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ANY))) in test_mod_exp_zero()
68 if (!TEST_true(BN_mod_exp(r, a, p, m, ctx))) in test_mod_exp_zero()
71 if (!TEST_true(a_is_zero_mod_one("BN_mod_exp", r, a))) in test_mod_exp_zero()
74 if (!TEST_true(BN_mod_exp_recp(r, a, p, m, ctx))) in test_mod_exp_zero()
77 if (!TEST_true(a_is_zero_mod_one("BN_mod_exp_recp", r, a))) in test_mod_exp_zero()
80 if (!TEST_true(BN_mod_exp_simple(r, a, p, m, ctx))) in test_mod_exp_zero()
83 if (!TEST_true(a_is_zero_mod_one("BN_mod_exp_simple", r, a))) in test_mod_exp_zero()
86 if (!TEST_true(BN_mod_exp_mont(r, a, p, m, ctx, NULL))) in test_mod_exp_zero()
89 if (!TEST_true(a_is_zero_mod_one("BN_mod_exp_mont", r, a))) in test_mod_exp_zero()
92 if (!TEST_true(BN_mod_exp_mont_consttime(r, a, p, m, ctx, NULL))) in test_mod_exp_zero()
95 if (!TEST_true(a_is_zero_mod_one("BN_mod_exp_mont_consttime", r, a))) in test_mod_exp_zero()
109 if (!TEST_true(BN_MONT_CTX_set(mont, m, ctx))) in test_mod_exp_zero()
113 if (!TEST_true(BN_mod_exp_mont_consttime(r, p, a, m, ctx, mont))) in test_mod_exp_zero()
116 if (!TEST_true(a_is_zero_mod_one("BN_mod_exp_mont_consttime", r, a))) in test_mod_exp_zero()
119 if (!TEST_true(BN_mod_exp_mont(r, p, a, m, ctx, mont))) in test_mod_exp_zero()
122 if (!TEST_true(a_is_zero_mod_one("BN_mod_exp_mont", r, a))) in test_mod_exp_zero()
129 if (!TEST_true(BN_mod_exp_mont_word(r, one_word, p, m, ctx, NULL))) in test_mod_exp_zero()
179 if (!TEST_true(BN_rand(a, NUM_BITS + c, BN_RAND_TOP_ONE, in test_mod_exp()
186 if (!TEST_true(BN_rand(b, NUM_BITS + c, BN_RAND_TOP_ONE, in test_mod_exp()
193 if (!TEST_true(BN_rand(m, NUM_BITS + c, BN_RAND_TOP_ONE, in test_mod_exp()
197 if (!TEST_true(BN_mod(a, a, m, ctx)) in test_mod_exp()
198 || !TEST_true(BN_mod(b, b, m, ctx)) in test_mod_exp()
199 || !TEST_true(BN_mod_exp_mont(r_mont, a, b, m, ctx, NULL)) in test_mod_exp()
200 || !TEST_true(BN_mod_exp_recp(r_recp, a, b, m, ctx)) in test_mod_exp()
201 || !TEST_true(BN_mod_exp_simple(r_simple, a, b, m, ctx)) in test_mod_exp()
202 || !TEST_true(BN_mod_exp_mont_consttime(r_mont_const, a, b, m, ctx, NULL))) in test_mod_exp()
283 if (!TEST_true(BN_mod(a1, a1, m1, ctx)) in test_mod_exp_x2()
284 || !TEST_true(BN_mod(b1, b1, m1, ctx)) in test_mod_exp_x2()
285 || !TEST_true(BN_mod(a2, a2, m2, ctx)) in test_mod_exp_x2()
286 || !TEST_true(BN_mod(b2, b2, m2, ctx)) in test_mod_exp_x2()
287 || !TEST_true(BN_mod_exp_simple(r_simple1, a1, b1, m1, ctx)) in test_mod_exp_x2()
288 || !TEST_true(BN_mod_exp_simple(r_simple2, a2, b2, m2, ctx)) in test_mod_exp_x2()
289 || !TEST_true(BN_mod_exp_mont_consttime_x2(r_mont_const_x2_1, a1, b1, m1, NULL, in test_mod_exp_x2()