]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/rsa/rsa_chk.c
Document the DH library, and make some minor changes along the way.
[thirdparty/openssl.git] / crypto / rsa / rsa_chk.c
index 03497f846387fbeb555f129124c3d7caf14e9a5e..91b91157983fe9e09025f7896314bec53c8dc82d 100644 (file)
@@ -75,7 +75,7 @@ int RSA_check_key(RSA *key)
                }
        
        /* p prime? */
-       r = BN_is_prime(key->p, BN_prime_checks(BN_num_bits(key->p)), NULL, NULL, NULL);
+       r = BN_is_prime(key->p, BN_prime_checks, 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(BN_num_bits(key->q)), NULL, NULL, NULL);
+       r = BN_is_prime(key->q, BN_prime_checks, NULL, NULL, NULL);
        if (r != 1)
                {
                ret = r;