HomeFreeBSD

opencrypto: Respect alignment constraints in xor_and_encrypt()

Description

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)

Details

Provenance
markjAuthored on Jul 27 2023, 7:44 PM
Reviewer
jhb
Differential Revision
D41211: opencrypto: Respect alignment constraints in xor_and_encrypt()
Parents
rGc1c798f17481: sh tests: Update $LINENO tests after $FreeBSD$ removal
Branches
Unknown
Tags
Unknown