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:
parent
f7e13adb96
commit
a2db490de5
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user