Removed hard coded value for cap in function ossl_rsa_multip_cap

As suggested at https://github.com/openssl/openssl/pull/23280#discussion_r1452113014, removing hard coded value for cap.

CLA: trivial

Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/23311)
This commit is contained in:
Gopal Sharma 2024-01-16 14:50:12 +05:30 committed by Tomas Mraz
parent f6b307d860
commit a5e93f1c5b

View File

@ -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;