mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
sm: Cleanup the use of GCRY_PK_ECC and GCRY_PK_ECDSA.
* common/sexputil.c (pubkey_algo_to_string): New. * sm/certcheck.c (do_encode_md): Replace GCRY_PK_ECDSA by GCRY_PK_ECC. * sm/certreqgen-ui.c (check_keygrip): Add all ECC algorithms. * sm/gpgsm.c (our_pk_test_algo): Also allow EdDSA. * sm/verify.c (gpgsm_verify): Map ECC algo to ECDSA. Use new pubkey algo name function Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
a759fa963a
commit
34b628db46
6 changed files with 31 additions and 8 deletions
|
@ -510,6 +510,7 @@ our_pk_test_algo (int algo)
|
|||
{
|
||||
case GCRY_PK_RSA:
|
||||
case GCRY_PK_ECDSA:
|
||||
case GCRY_PK_EDDSA:
|
||||
return gcry_pk_test_algo (algo);
|
||||
default:
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue