Lines Matching refs:checks
27 static int bn_is_prime_int(const BIGNUM *w, int checks, BN_CTX *ctx,
131 int checks = bn_mr_min_checks(bits); in BN_generate_prime_ex2() local
170 i = bn_is_prime_int(ret, checks, ctx, 0, cb); in BN_generate_prime_ex2()
183 for (i = 0; i < checks; i++) { in BN_generate_prime_ex2()
228 int BN_is_prime_ex(const BIGNUM *a, int checks, BN_CTX *ctx_passed, in BN_is_prime_ex() argument
231 return ossl_bn_check_prime(a, checks, ctx_passed, 0, cb); in BN_is_prime_ex()
234 int BN_is_prime_fasttest_ex(const BIGNUM *w, int checks, BN_CTX *ctx, 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()
242 int ossl_bn_check_prime(const BIGNUM *w, int checks, BN_CTX *ctx, in ossl_bn_check_prime() argument
247 if (checks < min_checks) in ossl_bn_check_prime()
248 checks = min_checks; in ossl_bn_check_prime()
250 return bn_is_prime_int(w, checks, ctx, do_trial_division, cb); in ossl_bn_check_prime()
258 int ossl_bn_check_generated_prime(const BIGNUM *w, int checks, BN_CTX *ctx, in ossl_bn_check_generated_prime() argument
261 return bn_is_prime_int(w, checks, ctx, 1, cb); in ossl_bn_check_generated_prime()
275 static int bn_is_prime_int(const BIGNUM *w, int checks, BN_CTX *ctx, in bn_is_prime_int() argument
320 if (!ossl_bn_miller_rabin_is_prime(w, checks, ctx, cb, 0, &status)) { in bn_is_prime_int()