Page MenuHomeFreeBSD

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

Authored by markj on May 4 2023, 7:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jun 25, 6:15 PM
Unknown Object (File)
Sun, Jun 23, 6:12 AM
Unknown Object (File)
Fri, Jun 21, 8:56 PM
Unknown Object (File)
Wed, Jun 19, 5:58 PM
Unknown Object (File)
Tue, Jun 18, 7:51 AM
Unknown Object (File)
Tue, Jun 18, 7:50 AM
Unknown Object (File)
Wed, Jun 12, 3:11 AM
Unknown Object (File)
May 17 2024, 2:00 AM
Subscribers

Details

Summary

This lets one use ossl(4) for AES-GCM operations on contemporary
amd64 platforms.

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.

Diff Detail

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

Event Timeline

markj requested review of this revision.May 4 2023, 7:10 PM

Does the man page need an update to mention AES?

  • Mention AES-GCM in ossl.4.

Port gcm128_(en|de)crypt_ctr32() as well, this includes loop unrolling which
helps throughput with small (< ~256) buffers that are not handled by the
bulk processing done in aesni_gcm_(en|de)crypt().

This revision is now accepted and ready to land.May 8 2023, 6:03 PM