mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-14 21:47:19 +02:00
gpgsm: 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, 6253
Signed-off-by: Werner Koch <wk@gnupg.org>
Backported-from-master: f44d395bdf
This commit is contained in:
parent
4aed853f2b
commit
7c3aeb2a57
2 changed files with 52 additions and 32 deletions
|
@ -237,6 +237,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