]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ktls: Add tests for receiving corrupted or invalid records.
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 15 Nov 2022 20:03:19 +0000 (12:03 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 15 Nov 2022 20:03:19 +0000 (12:03 -0800)
commit65bd3adbed1526cfedc4474c1a390e058303128f
treeed88e2378a80e929ce7666529ac42638871a5b30
parent4e47414648894943413091984124d93bd43e5da1
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
tests/sys/kern/ktls_test.c