Home GnuPG
Diffusion GnuPG 2e065b4bd2d3

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
rG6d792ae2eb46: agent: Make --disable-extended-key-format a dummy option.
Branches
Unknown
Tags
Unknown
Tasks
T6378: keytocard: invalid value