Home GnuPG
Diffusion GnuPG a21ca3a1eff4

gpg: Implemented latest rfc4880bis version 5 packet hashing.

Description

gpg: Implemented latest rfc4880bis version 5 packet hashing.

* configure.ac (AC_CHECK_SIZEOF): Test size_t.
* g10/sig-check.c (check_signature_end_simple): Support v5 signatures
as per current rfc4880bis.  For correctness also allow for N > 2^32.
* g10/sign.c (pt_extra_hash_data_t): New.
(hash_sigversion_to_magic): New arg EXTRAHASH.
(write_plaintext_packet): New arg R_EXTRAHASH.
(write_signature_packets): Pass EXTRAHASH.
(sign_file): Ditto.
(sign_symencrypt_file): Ditto.

Take care: The code path for v5 sigs has not yet been tested.

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

Details

Provenance
wernerAuthored on Mar 12 2019, 11:09 AM
Parents
rGf199b627ce51: Fix the previous commit.
Branches
Unknown
Tags
Unknown