]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
opencrypto: Respect alignment constraints in xor_and_encrypt()
authorMark Johnston <markj@FreeBSD.org>
Thu, 27 Jul 2023 19:44:52 +0000 (15:44 -0400)
committerMark Johnston <markj@FreeBSD.org>
Thu, 24 Aug 2023 13:32:59 +0000 (09:32 -0400)
commit045fc75ce490cca0aec8f412dd28bc1031e0919d
treeb32a708ce06deb793c6a97af91fbca36f5054a87
parentc1c798f174817b567f66379412c231ebfdcd7c8b
opencrypto: Respect alignment constraints in xor_and_encrypt()

Copy operands to an aligned buffer before performing operations which
require alignment.  Otherwise it's possible for this code to trigger an
alignment fault on armv7.

Reviewed by: jhb
MFC after: 2 weeks
Sponsored by: Klara, Inc.
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D41211

(cherry picked from commit 96c2538121390c872f68ac48f97b35fb973c11dc)
sys/opencrypto/cbc_mac.c