Lines Matching refs:cb

28                            int do_trial_division, BN_GENCB *cb);
101 int BN_GENCB_call(BN_GENCB *cb, int a, int b) in BN_GENCB_call() argument
104 if (!cb) in BN_GENCB_call()
106 switch (cb->ver) { in BN_GENCB_call()
109 if (!cb->cb.cb_1) in BN_GENCB_call()
111 cb->cb.cb_1(a, b, cb->arg); in BN_GENCB_call()
115 return cb->cb.cb_2(a, b, cb); in BN_GENCB_call()
124 const BIGNUM *add, const BIGNUM *rem, BN_GENCB *cb, in BN_generate_prime_ex2() argument
165 if (!BN_GENCB_call(cb, 0, c1++)) in BN_generate_prime_ex2()
170 i = bn_is_prime_int(ret, checks, ctx, 0, cb); in BN_generate_prime_ex2()
184 j = bn_is_prime_int(ret, 1, ctx, 0, cb); in BN_generate_prime_ex2()
190 j = bn_is_prime_int(t, 1, ctx, 0, cb); in BN_generate_prime_ex2()
196 if (!BN_GENCB_call(cb, 2, c1 - 1)) in BN_generate_prime_ex2()
212 const BIGNUM *add, const BIGNUM *rem, BN_GENCB *cb) in BN_generate_prime_ex() argument
220 retval = BN_generate_prime_ex2(ret, bits, safe, add, rem, cb, ctx); in BN_generate_prime_ex()
229 BN_GENCB *cb) in BN_is_prime_ex() argument
231 return ossl_bn_check_prime(a, checks, ctx_passed, 0, cb); in BN_is_prime_ex()
235 int do_trial_division, BN_GENCB *cb) in BN_is_prime_fasttest_ex() argument
237 return ossl_bn_check_prime(w, checks, ctx, do_trial_division, cb); in BN_is_prime_fasttest_ex()
243 int do_trial_division, BN_GENCB *cb) in ossl_bn_check_prime() argument
250 return bn_is_prime_int(w, checks, ctx, do_trial_division, cb); in ossl_bn_check_prime()
259 BN_GENCB *cb) in ossl_bn_check_generated_prime() argument
261 return bn_is_prime_int(w, checks, ctx, 1, cb); in ossl_bn_check_generated_prime()
264 int BN_check_prime(const BIGNUM *p, BN_CTX *ctx, BN_GENCB *cb) in BN_check_prime() argument
266 return ossl_bn_check_prime(p, 0, ctx, 1, cb); in BN_check_prime()
276 int do_trial_division, BN_GENCB *cb) in bn_is_prime_int() argument
312 if (!BN_GENCB_call(cb, 1, -1)) in bn_is_prime_int()
320 if (!ossl_bn_miller_rabin_is_prime(w, checks, ctx, cb, 0, &status)) { in bn_is_prime_int()
348 BN_GENCB *cb, int enhanced, int *status) in ossl_bn_miller_rabin_is_prime() argument
459 if (!BN_GENCB_call(cb, 1, i)) in ossl_bn_miller_rabin_is_prime()