Home | History | Annotate | Download | only in test

Lines Matching refs:TEST_true

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