Home GnuPG
Diffusion GnuPG 74e9b579ca27

sm: Support generation of card-based ECDSA CSR.

Description

sm: Support generation of card-based ECDSA CSR.

* sm/call-agent.c (gpgsm_scd_pksign): Identify type of signing key
and format resulting S-expression accordingly.
* sm/misc.c (transform_sigval): Support ECDSA signatures.

Current GpgSM implementation assumes card-based keys are RSA keys.
This patch introduces support for ECDSA keys.

By itself this patch is not sufficient, we also need support
from libksba.

  • GnuPG-bug-id: T4092
  • Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>