diff options
author | Bodo Möller <bodo@openssl.org> | 2000-01-12 11:57:30 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2000-01-12 11:57:30 +0000 |
commit | 76aa0ddc86772080db4f61821b9ff357e330c843 (patch) | |
tree | 156e6551fb083163ca4717274f3970601bf7946e /crypto/rsa/rsa_chk.c | |
parent | e4b76456310f6a337c471ec5c7525bc65e4e40d5 (diff) | |
download | openssl-new-76aa0ddc86772080db4f61821b9ff357e330c843.tar.gz |
Turn BN_prime_checks into a macro.
Primes p where (p-1)/2 is prime too are called "safe", not "strong".
Diffstat (limited to 'crypto/rsa/rsa_chk.c')
-rw-r--r-- | crypto/rsa/rsa_chk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/rsa/rsa_chk.c b/crypto/rsa/rsa_chk.c index 91b9115798..03497f8463 100644 --- a/crypto/rsa/rsa_chk.c +++ b/crypto/rsa/rsa_chk.c @@ -75,7 +75,7 @@ int RSA_check_key(RSA *key) } /* p prime? */ - r = BN_is_prime(key->p, BN_prime_checks, NULL, NULL, NULL); + r = BN_is_prime(key->p, BN_prime_checks(BN_num_bits(key->p)), NULL, NULL, NULL); if (r != 1) { ret = r; @@ -85,7 +85,7 @@ int RSA_check_key(RSA *key) } /* q prime? */ - r = BN_is_prime(key->q, BN_prime_checks, NULL, NULL, NULL); + r = BN_is_prime(key->q, BN_prime_checks(BN_num_bits(key->q)), NULL, NULL, NULL); if (r != 1) { ret = r; |