Home GnuPG
Diffusion GnuPG 4aed853f2bba

gpgsm: Support verification of nistp521 signatures.

Description

gpgsm: Support verification of nistp521 signatures.

* sm/certcheck.c (do_encode_md): Take care of nistp521.

This curve is a bit odd in that it does not match a common hash digest
length. We fix that here for just this case instead of writing more
general code to support all allowed cases (i.e. hash shorter than Q).

Backported-from-master: 596212e71abf33b30608348b782c093dace83110

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

Details

Provenance
wernerAuthored on Nov 15 2022, 10:46 AM
Parents
rG88335b2d5bbe: gpgsm: Cleanup the use of GCRY_PK_ECC and GCRY_PK_ECDSA.
Branches
Unknown
Tags
Unknown