HomeFreeBSD

ossl: Fix handling of separate AAD buffers in ossl_aes_gcm()

Description

ossl: Fix handling of separate AAD buffers in ossl_aes_gcm()

Consumers may optionally provide a reference to a separate buffer
containing AAD, but ossl_aes_gcm() didn't handle this and would thus
compute an incorrect digest.

Fixes: 9a3444d91c70 ("ossl: Add a VAES-based AES-GCM implementation for amd64")
Reviewed by: jhb
MFC after: 3 days
Sponsored by: Klara, Inc.
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D42736

(cherry picked from commit 87826c87c63b2995cb69e9c1a624c7e20dd70fcd)

Details

Provenance
markjAuthored on Nov 28 2023, 7:35 PM
Reviewer
jhb
Differential Revision
D42736: ossl: Fix handling of separate AAD buffers in ossl_aes_gcm()
Parents
rG62304a0c3b8b: zfs: merge openzfs/zfs@494aaaed8 (zfs-2.2-release) into stable/14
Branches
Unknown
Tags
Unknown