g10/mainproc: avoid extra hash contexts when decrypting AEAD input
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Fri, 9 Nov 2018 16:07:38 +0000 (18:07 +0200)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Fri, 9 Nov 2018 16:07:18 +0000 (18:07 +0200)
commitb46382dd47731231ff49b59c486110a25e08e985
tree70f898c8d2ee120232482905ca6b2bd9614cbe0d
parent643ec7c642dc75191e712963d2bb460ac247e09b
g10/mainproc: avoid extra hash contexts when decrypting AEAD input

* g10/mainproc.c (mainproc_context): New member
'seen_pkt_encrypted_aead'.
(release_list): Clear 'seen_pkt_encrypted_aead'.
(proc_encrypted): Set 'seen_pkt_encrypted_aead'.
(have_seen_pkt_encrypted_aead): New.
(proc_plaintext): Do not enable extra hash contexts when decryption
AEAD input.
--

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
g10/mainproc.c