Lines Matching defs:mont
53 BN_MONT_CTX *mont = NULL;
98 if (!TEST_ptr(mont = BN_MONT_CTX_new()))
102 /* mont is not set but passed in */
103 if (!TEST_false(BN_mod_exp_mont_consttime(r, p, a, m, ctx, mont)))
105 if (!TEST_false(BN_mod_exp_mont(r, p, a, m, ctx, mont)))
109 if (!TEST_true(BN_MONT_CTX_set(mont, m, ctx)))
112 /* we compute 0 ** a mod 1 here, to execute code that uses mont */
113 if (!TEST_true(BN_mod_exp_mont_consttime(r, p, a, m, ctx, mont)))
119 if (!TEST_true(BN_mod_exp_mont(r, p, a, m, ctx, mont)))
145 BN_MONT_CTX_free(mont);
209 TEST_info("simple and mont results differ");
211 TEST_info("simple and mont const time results differ");
297 TEST_info("simple and mont const time x2 (#1) results differ");
299 TEST_info("simple and mont const time x2 (#2) results differ");