summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2022-02-21 12:15:15 +0100
committerWerner Koch <wk@gnupg.org>2022-02-21 12:17:08 +0100
commit597253ca171a8ae9f0456323eb3aceb47fd4fde6 (patch)
tree06fb63416b8710d21751017429b2c583d087c277
parentsm: Fix use of value NONE in gnupg_isotime_t type. (diff)
downloadgnupg2-597253ca171a8ae9f0456323eb3aceb47fd4fde6.tar.xz
gnupg2-597253ca171a8ae9f0456323eb3aceb47fd4fde6.zip
scd:p15: Used extended mode already for RSA 2048
* scd/app-p15.c (do_sign, do_decipher): Replace GT by GE. --
-rw-r--r--scd/app-p15.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scd/app-p15.c b/scd/app-p15.c
index 4577fbc36..ce832a9bb 100644
--- a/scd/app-p15.c
+++ b/scd/app-p15.c
@@ -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;