Lines Matching refs:a

32                              const BIGNUM *a)  in a_is_zero_mod_one()  argument
36 BN_print_var(a); in a_is_zero_mod_one()
48 BIGNUM *a = NULL, *p = NULL, *m = NULL; in test_mod_exp_zero() local
56 || !TEST_ptr(a = BN_new()) in test_mod_exp_zero()
62 BN_one(a); in test_mod_exp_zero()
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()
103 if (!TEST_false(BN_mod_exp_mont_consttime(r, p, a, m, ctx, mont))) in test_mod_exp_zero()
105 if (!TEST_false(BN_mod_exp_mont(r, p, a, m, ctx, mont))) 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()
142 BN_free(a); in test_mod_exp_zero()
160 BIGNUM *a = NULL; in test_mod_exp() local
171 || !TEST_ptr(a = BN_new()) in test_mod_exp()
179 if (!TEST_true(BN_rand(a, 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()
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()
215 BN_print_var(a); in test_mod_exp()
231 BN_free(a); in test_mod_exp()