diff options
author | Bodo Möller <bodo@openssl.org> | 2000-01-30 03:32:28 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2000-01-30 03:32:28 +0000 |
commit | 1baa94907c6c58d96a989a98bc319135354c346b (patch) | |
tree | 8af1bd3be38a4dd33b9cea48231948f48f5c8dbd /crypto/bn | |
parent | 7865b871c0307ad2d71a8f3dc066b7cfd0d99c4a (diff) |
Make output of "openssl dsaparam 1024" more interesting :-)
Diffstat (limited to 'crypto/bn')
-rw-r--r-- | crypto/bn/bn_prime.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/bn/bn_prime.c b/crypto/bn/bn_prime.c index e679c7c822..39b99ea6c3 100644 --- a/crypto/bn/bn_prime.c +++ b/crypto/bn/bn_prime.c @@ -173,9 +173,12 @@ int BN_is_prime_fasttest(BIGNUM *a, int checks, if (!BN_is_odd(a)) return(0); if (do_trial_division) + { for (i = 1; i < NUMPRIMES; i++) if (BN_mod_word(a, primes[i]) == 0) return 0; + if (callback != NULL) callback(1,-1,cb_arg); + } if (ctx_passed != NULL) ctx=ctx_passed; |