Home GnuPG
Diffusion GnuPG 29692718768c

scd: Support changing key attribute back to RSA.

Description

scd: Support changing key attribute back to RSA.

* scd/app-openpgp.c (change_rsa_keyattr): Try usual RSA.

In the OpenPGP card specification, there are multiple options to
support RSA (having P and Q or not, etc.), and it is implementation
dependent. Since GnuPG doesn't have knowledge which card
implementation support which option and there is no way (yet) for card
to express itself which key attributes are supported, we haven't
supported key attribute change back to RSA. But, many card
implementation uses P and Q, try this option. If other cases,
factory-reset would be easier option.

  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Mar 30 2018, 2:59 AM
Parents
rGa1515b3bbc10: g10: Support key attribute change at --card-edit/generate.
Branches
Unknown
Tags
Unknown