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
F98735529: D37371.diff
Fri, Oct 4, 1:25 PM
Unknown Object (File)
Mon, Sep 30, 11:10 PM
Unknown Object (File)
Fri, Sep 20, 3:20 PM
Unknown Object (File)
Fri, Sep 20, 6:15 AM
Unknown Object (File)
Wed, Sep 18, 5:14 PM
Unknown Object (File)
Mon, Sep 16, 9:26 AM
Unknown Object (File)
Sat, Sep 14, 11:04 PM
Unknown Object (File)
Thu, Sep 5, 4:31 AM
Subscribers

Details

Summary

Sponsored by: Chelsio Communications

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 48315
Build 45201: arc lint + arc unit

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

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.

893

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
893

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