sm: Support generation of card-based ed25519 CSR.
authorDamien Goutte-Gattat via Gnupg-devel <gnupg-devel@gnupg.org>
Sun, 17 Feb 2019 17:40:51 +0000 (17:40 +0000)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 18 Feb 2019 02:33:20 +0000 (11:33 +0900)
commit3cbdf896e6919333b5423001ab58c01a04363386
tree7d434971ab3021c5931e0c58e0fa1e33272ea2d8
parent74e9b579ca273fc07be090bb5fb7800a97b1b452
sm: Support generation of card-based ed25519 CSR.

* sm/call-agent.c (gpgsm_scd_pksign): Allow SHA512. Create proper
S-expression for EdDSA signature.
* sm/certreqgen.c (create_request): Force use of SHA512 when
using a ed25519 key.
* sm/misc.c (transform_sigval): Insert OID for ed25519.

--

GnuPG-bug-id: 4013
Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
sm/call-agent.c
sm/certreqgen.c
sm/misc.c