1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-23 10:29:58 +01:00

scd:p15: Used extended mode already for RSA 2048

* scd/app-p15.c (do_sign, do_decipher): Replace GT by GE.
--
This commit is contained in:
Werner Koch 2022-02-21 12:15:15 +01:00
parent f7e13adb96
commit a2db490de5
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -5504,7 +5504,7 @@ do_sign (app_t app, ctrl_t ctrl, const char *keyidstr, int hashalgo,
goto leave;
}
if (prkdf->keyalgo == GCRY_PK_RSA && prkdf->keynbits > 2048)
if (prkdf->keyalgo == GCRY_PK_RSA && prkdf->keynbits >= 2048)
{
exmode = 1;
le_value = prkdf->keynbits / 8;
@ -5695,7 +5695,7 @@ do_decipher (app_t app, ctrl_t ctrl, const char *keyidstr,
exmode = le_value = 0;
padind = 0;
if (prkdf->keyalgo == GCRY_PK_RSA && prkdf->keynbits > 2048)
if (prkdf->keyalgo == GCRY_PK_RSA && prkdf->keynbits >= 2048)
{
exmode = 1; /* Extended length w/o a limit. */
le_value = prkdf->keynbits / 8;