Home GnuPG
Diffusion Scute ae4b7d8e2764

Support ECC signature.

Description

Support ECC signature.

* src/agent.c (pksign_parse_result): Support ECC signature in SEXP.
(scute_agent_sign): Support ECC signing.
* src/cert-object.c (asn1_get_ec_params): New.
(scute_attr_prv): Support ECC mechanism.
* src/p11-signinit.c (C_SignInit): Remove the check for RSA.
* src/slots.c (struct slot): Add key_type.
(mechanism_alloc): Get the mechanism from the certificate.
(slot_alloc): Don't allocate mechanisms here.
(slot_init): Allocate mechanisms here.
(session_sign): Support returning the length of signature
for ECC.
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Sep 21 2022, 8:01 AM
Parents
rS4a1169983259: Fix wrong fix of off-by-one error.
Branches
Unknown
Tags
Unknown