sm: Support generation of card-based ECDSA CSR.
authorDamien Goutte-Gattat via Gnupg-devel <gnupg-devel@gnupg.org>
Fri, 16 Nov 2018 01:27:37 +0000 (01:27 +0000)
committerNIIBE Yutaka <gniibe@fsij.org>
Fri, 15 Feb 2019 02:01:20 +0000 (11:01 +0900)
commit74e9b579ca273fc07be090bb5fb7800a97b1b452
treeac80d4c0c09325a15eda7bd757782ef85ff6cbd0
parentb89f1790e0b9f3196a2382a9b9ff5f461c58a449
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: 4092
Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
sm/call-agent.c
sm/misc.c