Home GnuPG
Diffusion GnuPG a1515b3bbc10

g10: Support key attribute change at --card-edit/generate.

Description

g10: Support key attribute change at --card-edit/generate.

* g10/card-util.c (ask_card_rsa_keysize): Drop support for magic
number 25519 for ed25519/cv25519.  Rename from ask_card_keyattr.
(ask_card_keyattr): Support ECC, as well as RSA.
(do_change_keyattr): Support ECC dropping magical number 25519.
* g10/keygen.c (ask_curve): Allow call from outside, adding last arg
of CURRENT.
(generate_keypair): Follow the change of ask_curve.
(generate_subkeypair): Likewise.
  • GnuPG-bug-id: T3781
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details