Lines Matching refs:cb
141 int BN_GENCB_call(BN_GENCB *cb, int a, int b)
144 if (!cb)
146 switch (cb->ver) {
149 if (!cb->cb.cb_1)
151 cb->cb.cb_1(a, b, cb->arg);
155 return cb->cb.cb_2(a, b, cb);
164 const BIGNUM *add, const BIGNUM *rem, BN_GENCB *cb)
194 if (!BN_GENCB_call(cb, 0, c1++))
199 i = BN_is_prime_fasttest_ex(ret, checks, ctx, 0, cb);
213 j = BN_is_prime_fasttest_ex(ret, 1, ctx, 0, cb);
219 j = BN_is_prime_fasttest_ex(t, 1, ctx, 0, cb);
225 if (!BN_GENCB_call(cb, 2, c1 - 1))
242 BN_GENCB *cb)
244 return BN_is_prime_fasttest_ex(a, checks, ctx_passed, 0, cb);
248 int do_trial_division, BN_GENCB *cb)
271 if (!BN_GENCB_call(cb, 1, -1))
335 if (!BN_GENCB_call(cb, 1, i))