gpg: Introduce magic value 25519 to switch a card to ECC.
authorWerner Koch <wk@gnupg.org>
Thu, 2 Nov 2017 16:11:03 +0000 (17:11 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 2 Nov 2017 16:31:57 +0000 (17:31 +0100)
commitacb300543422c660c87ac2f0211a42f792a65cc4
tree3616767a48b57ba834578ad3fd6d49fcfb3a6b35
parentde3a740c2e1156e58d2f94faa85c051740c8988e
gpg: Introduce magic value 25519 to switch a card to ECC.

* g10/card-util.c (ask_card_keyattr): Handle special value 25519.
(do_change_keyattr): Allow changing to cv25519/ed25519.
(generate_card_keys): Ditto.
(card_generate_subkey): Ditto.
--

This is kludge to make it easier for gnuk to be switched into ECC
mode.  This is basically the same change as
commit ea09b6cded9d31a8ebd91878553c3eaa2b76e817
but without the string change in show_keysize_warning.

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/card-util.c