aboutsummaryrefslogtreecommitdiffstats
path: root/agent/command.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2025-05-22 05:29:51 +0000
committerNIIBE Yutaka <[email protected]>2025-05-22 05:29:51 +0000
commitb956f47e2ab08150d4505952a04d33279b2dd7cc (patch)
tree30fbbecf8226c52490b923766198129406486c0b /agent/command.c
parentagent: Support ECC KEM by PKDECRYPT --kem. (diff)
downloadgnupg-b956f47e2ab08150d4505952a04d33279b2dd7cc.tar.gz
gnupg-b956f47e2ab08150d4505952a04d33279b2dd7cc.zip
agent: Finish ECC KEM, adding support for NIST curves.
* agent/command.c (cmd_pkdecrypt): ECC KEM PGP doesn't use OPTION. * agent/pkdecrypt.c (ecc_table): Add NIST curves. (ECC_SCALAR_LEN_MAX, ECC_POINT_LEN_MAX): Fix for NIST curves. (composite_pgp_kem_decrypt): Take care of error by gcry_cipher_setkey. (ecc_kem_decrypt): Fix un-wrapping the session key. -- GnuPG-bug-id: 7649 Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'agent/command.c')
-rw-r--r--agent/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/command.c b/agent/command.c
index 88c5576fb..a9eb0104e 100644
--- a/agent/command.c
+++ b/agent/command.c
@@ -1096,7 +1096,7 @@ cmd_pkdecrypt (assuan_context_t ctx, char *line)
if (!rc)
rc = assuan_inquire (ctx, "CIPHERTEXT",
&value, &valuelen, MAXLEN_CIPHERTEXT);
- if (!rc && kemid > KEM_PQC_PGP)
+ if (!rc && kemid > KEM_PGP)
rc = assuan_inquire (ctx, "OPTION",
&option, &optionlen, MAXLEN_CIPHERTEXT);
if (rc)