Lines Matching refs:ctx
51 BN_CTX *ctx = BN_CTX_new();
68 if (!TEST_true(BN_mod_exp(r, a, p, m, ctx)))
74 if (!TEST_true(BN_mod_exp_recp(r, a, p, m, ctx)))
80 if (!TEST_true(BN_mod_exp_simple(r, a, p, m, ctx)))
86 if (!TEST_true(BN_mod_exp_mont(r, a, p, m, ctx, NULL)))
92 if (!TEST_true(BN_mod_exp_mont_consttime(r, a, p, m, ctx, NULL)))
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)))
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)))
129 if (!TEST_true(BN_mod_exp_mont_word(r, one_word, p, m, ctx, NULL)))
146 BN_CTX_free(ctx);
153 BN_CTX *ctx;
164 if (!TEST_ptr(ctx = BN_CTX_new()))
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)))
234 BN_CTX_free(ctx);
241 BN_CTX *ctx;
261 if (!TEST_ptr(ctx = BN_CTX_new()))
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))
291 ctx)))
326 BN_CTX_free(ctx);