]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
GMAC: Reset initial hash value and counter in AES_GMAC_Reinit().
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 9 Dec 2021 19:52:42 +0000 (11:52 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 9 Dec 2021 19:52:42 +0000 (11:52 -0800)
commit356c922f74bfcece1f139026897a79c62adbdf50
treea4f45837a55a39de6526b3bde8ef8d1e666a9226
parentc172a407fb0d2e6b4389625ebf604b5a2f831054
GMAC: Reset initial hash value and counter in AES_GMAC_Reinit().

Previously, these values were only cleared in AES_GMAC_Init(), so a
second set of operations could reuse the final hash as the initial
hash.  Currently this bug does not trigger in cryptosoft as existing
GMAC and GCM operations always use an on-stack auth context
initialized from a template context.

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D33315
sys/opencrypto/gmac.c