Home GnuPG
Diffusion GnuPG 88335b2d5bbe

gpgsm: Cleanup the use of GCRY_PK_ECC and GCRY_PK_ECDSA.

Description

gpgsm: 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

(cherry picked from commit 34b628db4618a8712536aea695f934b0286e7b18)

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on May 8 2020, 2:14 PM
Parents
rG266a6602f0c9: gpgsm: Some more ECC support backported.
Branches
Unknown
Tags
Unknown