Page MenuHomeFreeBSD

GMAC: Reset initial hash value and counter in AES_GMAC_Reinit().
ClosedPublic

Authored by jhb on Dec 7 2021, 12:35 AM.
Tags
None
Referenced Files
F166330937: D33315.id.diff
Wed, Aug 12, 11:14 PM
Unknown Object (File)
Tue, Aug 11, 4:05 PM
Unknown Object (File)
Mon, Aug 10, 2:50 PM
Unknown Object (File)
Mon, Aug 10, 2:50 PM
Unknown Object (File)
Mon, Aug 10, 10:47 AM
Unknown Object (File)
Sun, Aug 9, 1:12 PM
Unknown Object (File)
Sat, Aug 8, 3:32 AM
Unknown Object (File)
Fri, Aug 7, 5:24 PM
Subscribers

Details

Summary

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.

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable