Home GnuPG
Diffusion GnuPG 047506a03d21

gpg: Merge two functions in cipher-aead.c

Description

gpg: Merge two functions in cipher-aead.c

* g10/cipher-aead.c (set_nonce, set_additional_data): Merge into ...
(set_nonce_and_ad): new function.
(write_auth_tag): Print error message here.
(do_flush): Rename var newchunk to finalize.

There is no need to have separate functions here. We should also
print a error message for writing the final tag.

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

Details

Provenance
wernerAuthored on Feb 28 2018, 8:36 AM
Parents
rG618b86325f77: gpg: Simplify the AEAD decryption function.
Branches
Unknown
Tags
Unknown