Page MenuHomeFreeBSD

Add stricter checking on mac key lengths.
ClosedPublic

Authored by jhb on Jan 8 2020, 8:01 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 21, 9:46 AM
Unknown Object (File)
Tue, Oct 21, 9:45 AM
Unknown Object (File)
Tue, Oct 21, 9:45 AM
Unknown Object (File)
Tue, Oct 21, 6:50 AM
Unknown Object (File)
Mon, Oct 20, 10:18 PM
Unknown Object (File)
Sun, Oct 12, 1:28 AM
Unknown Object (File)
Sun, Oct 5, 3:39 AM
Unknown Object (File)
Sep 22 2025, 12:23 PM
Subscribers

Details

Summary

Negative lengths are always invalid. The key length should also
be zero for hash algorithms that do not accept a key.

Test Plan
  • cryptocheck passes
  • test program that provokes a panic with a length of -1 now fails with an error

Diff Detail

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