Page MenuHomeFreeBSD

ktls: Add tests for software AES-CBC decryption for TLS 1.1+.
ClosedPublic

Authored by jhb on Nov 12 2022, 12:02 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 17 2024, 2:54 AM
Unknown Object (File)
Mar 17 2024, 2:54 AM
Unknown Object (File)
Mar 17 2024, 2:54 AM
Unknown Object (File)
Mar 17 2024, 2:54 AM
Unknown Object (File)
Mar 14 2024, 10:28 AM
Unknown Object (File)
Feb 18 2024, 5:46 PM
Unknown Object (File)
Feb 2 2024, 10:09 AM
Unknown Object (File)
Jan 13 2024, 3:59 AM
Subscribers

Details

Summary

Sponsored by: Chelsio Communications

Diff Detail

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

Event Timeline

jhb requested review of this revision.Nov 12 2022, 12:02 AM
markj added inline comments.
tests/sys/kern/ktls_test.c
273–274

It might be worthwhile to keep the cbc_encrypt() and _decrypt() functions as wrappers. Then it's easier to read the callers since one doesn't have to remember what the bool parameter means.

909–961

The comment didn't move along with the old function. A comment for the new function should also explain "padding".

This revision is now accepted and ready to land.Nov 14 2022, 2:59 PM
jhb marked an inline comment as done.Nov 14 2022, 5:54 PM
jhb added inline comments.
tests/sys/kern/ktls_test.c
909–961

The comment is for the group of functions that encrypt TLS records (there is a similar pattern for the decrypt_tls_* functions). But yes, padding is worth documenting.

jhb marked an inline comment as done.Nov 14 2022, 6:11 PM
This revision now requires review to proceed.Nov 14 2022, 6:13 PM
This revision is now accepted and ready to land.Nov 15 2022, 2:20 PM