mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
sm: Support signing using ECDSA.
* sm/gpgsm.h (struct certlist_s): Add helper field pk_algo. * sm/sign.c (gpgsm_sign): Store the public key algo. Take the hash algo from the curve. Improve diagnostic output in verbose mode. -- GnuPG-bug-id: 4098 Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
68b857df13
commit
f44d395bdf
2 changed files with 52 additions and 30 deletions
|
@ -245,6 +245,7 @@ struct certlist_s
|
|||
ksba_cert_t cert;
|
||||
int is_encrypt_to; /* True if the certificate has been set through
|
||||
the --encrypto-to option. */
|
||||
int pk_algo; /* The PK_ALGO from CERT or 0 if not yet known. */
|
||||
int hash_algo; /* Used to track the hash algorithm to use. */
|
||||
const char *hash_algo_oid; /* And the corresponding OID. */
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue