HomeFreeBSD

ossl: Add a fallback AES-GCM implementation using AES-NI

Description

ossl: Add a fallback AES-GCM implementation using AES-NI

This lets one use ossl(4) for AES-GCM operations on contemporary amd64
platforms. A kernel benchmark indicates that this gives roughly
equivalent throughput to aesni(4) for various buffer sizes.

Bulk processing is done in aesni-gcm-x86_64.S, the rest is handled in a
C wrapper ported from OpenSSL's gcm128.c.

Sponsored by: Stormshield
Sponsored by: Klara, Inc.
Reviewed by: jhb
MFC after: 3 months
Differential Revision: https://reviews.freebsd.org/D39967

Details

Provenance
markjAuthored on Jun 2 2023, 4:01 PM
Reviewer
jhb
Differential Revision
D39967: ossl: Add a fallback AES-GCM implementation using AES-NI
Parents
rG9a3444d91c70: ossl: Add a VAES-based AES-GCM implementation for amd64
Branches
Unknown
Tags
Unknown