Home | History | Annotate | Download | only in bn

Lines Matching refs:cb

137 int BN_GENCB_call(BN_GENCB *cb, int a, int b)
140 if(!cb) return 1;
141 switch(cb->ver)
145 if(!cb->cb.cb_1)
147 cb->cb.cb_1(a, b, cb->arg);
151 return cb->cb.cb_2(a, b, cb);
160 const BIGNUM *add, const BIGNUM *rem, BN_GENCB *cb)
193 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);
217 j=BN_is_prime_fasttest_ex(t,1,ctx,0,cb);
221 if(!BN_GENCB_call(cb, 2, c1-1))
238 int BN_is_prime_ex(const BIGNUM *a, int checks, BN_CTX *ctx_passed, BN_GENCB *cb)
240 return BN_is_prime_fasttest_ex(a, checks, ctx_passed, 0, cb);
244 int do_trial_division, BN_GENCB *cb)
268 if(!BN_GENCB_call(cb, 1, -1))
335 if(!BN_GENCB_call(cb, 1, i))