Home GnuPG
Diffusion GnuPG b956f47e2ab0

agent: Finish ECC KEM, adding support for NIST curves.

Description

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: T7649
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Thu, May 22, 7:29 AM
Parents
rG57a3d2392539: agent: Support ECC KEM by PKDECRYPT --kem.
Branches
Unknown
Tags
Unknown
Tasks
T7649: gnupg: Use KEM interface for encryption/decryption