Home GnuPG
Diffusion GnuPG 34439da2d62b

scd: Support ECC key generation.
34439da2d62bUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

scd: Support ECC key generation.

* scd/app-openpgp.c (get_public_key): Fix a message.
(change_keyattr_from_string, ecc_writekey): Call mpi_release sooner.
(do_genkey): Add ECC support.

In OpenPGP card specification 3.0, ECC is introduced. So far, do_genkey
only supported RSA. Since KDF spec. is needed to calculate the
fingerprint, it is hard coded in app-openpgp.c. But it's defined by
OpenPGP ECC (RFC-6637), and card does nothing with KDF in fact.

  • Co-authored-by: Arnaud Fontaine <arnaud.fontaine@ssi.gouv.fr>
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Oct 18 2016, 3:46 PM
Parents
rGf1845f25dbea: scd: minor cleanup to merge other works.
Branches
Unknown
Tags
Unknown

Event Timeline

NIIBE Yutaka <gniibe@fsij.org> committed rG34439da2d62b: scd: Support ECC key generation. (authored by NIIBE Yutaka <gniibe@fsij.org>).Oct 18 2016, 3:58 PM