mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +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
05fdaa1737
commit
597253ca17
@ -5592,7 +5592,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;
|
||||
@ -5783,7 +5783,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