HomeFreeBSD

ktls: Add tests for receiving corrupted or invalid records.

Description

ktls: Add tests for receiving corrupted or invalid records.

These should all trigger errors when reading from the socket.

Tests include truncated records (socket closed early on the other
side), corrupted records (bits flipped in explicit IVs, ciphertext, or
MAC), invalid header fields, and various invalid record lengths.

Reviewed by: markj
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D37373

Details

Provenance
jhbAuthored on Nov 15 2022, 8:03 PM
Reviewer
markj
Differential Revision
D37373: ktls: Add tests for receiving corrupted or invalid records.
Parents
rG4e4741464889: ktls_ocf: Reject encrypted TLS records using AEAD that are too small.
Branches
Unknown
Tags
Unknown