diff --git a/crypto/rsa/rsa_mp.c b/crypto/rsa/rsa_mp.c index cb2fb7d1e8..ddb7338339 100644 --- a/crypto/rsa/rsa_mp.c +++ b/crypto/rsa/rsa_mp.c @@ -97,7 +97,7 @@ int ossl_rsa_multip_calc_product(RSA *rsa) int ossl_rsa_multip_cap(int bits) { - int cap = 5; + int cap = RSA_MAX_PRIME_NUM; if (bits < 1024) cap = 2;