Home GnuPG
Diffusion GnuPG 2630872cff71

scd,openpgp: Switch key attributes between RSA and ECC in writekey.

Description

scd,openpgp: Switch key attributes between RSA and ECC in writekey.

* common/sexputil.c (get_rsa_pk_from_canon_sexp): Also allow private
keys.
(pubkey_algo_string): Ditto.
* scd/app-openpgp.c (do_writekey): Switch key attributes

The scd WRITEKEY command for OpenPGP cards missed proper support to
aautomagically switch key attributes based on the new key. We had
this only in GENKEY.

Details

Provenance
wernerAuthored on Mar 14 2023, 4:16 PM
Parents
rG08cc34911470: gpg: Allow no version information of Yubikey
Branches
Unknown
Tags
Unknown
Tasks
T6378: keytocard: invalid value