mirror of
https://github.com/openssl/openssl.git
synced 2025-01-30 14:01:55 +08:00
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:
parent
f6b307d860
commit
a5e93f1c5b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user