Page MenuHomeFreeBSD

Use a counter with a random base for explicit IVs in GCM.
ClosedPublic

Authored by jhb on Oct 22 2019, 10:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 8, 4:16 PM
Unknown Object (File)
Sat, May 2, 11:54 AM
Unknown Object (File)
Wed, Apr 29, 7:10 AM
Unknown Object (File)
Wed, Apr 29, 7:05 AM
Unknown Object (File)
Mon, Apr 27, 8:30 AM
Unknown Object (File)
Apr 20 2026, 9:59 AM
Unknown Object (File)
Apr 19 2026, 1:15 PM
Unknown Object (File)
Apr 19 2026, 8:31 AM
Subscribers

Details

Summary

This permits constructing the entire TLS header in ktls_frame()
rather than ktls_seq(). This also matches the approach used by
OpenSSL which uses an incrementing nonce as the explicit IV
rather than the sequence number.

Test Plan
  • tested with ktls_ocf with both cryptosoft and ccr
  • used wireshark to verify incrementing nonces

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Would you be able to test this with the current ISA-L module (and verify it works ok on your end)?

Works fine running on a Netflix cache.

This revision is now accepted and ready to land.Oct 23 2019, 11:08 PM