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)
Thu, Dec 11, 8:38 AM
Unknown Object (File)
Dec 1 2025, 9:10 AM
Unknown Object (File)
Nov 28 2025, 9:25 AM
Unknown Object (File)
Nov 23 2025, 1:39 AM
Unknown Object (File)
Nov 23 2025, 1:39 AM
Unknown Object (File)
Nov 23 2025, 1:39 AM
Unknown Object (File)
Nov 23 2025, 1:30 AM
Unknown Object (File)
Nov 21 2025, 3:31 AM
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

Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 28555
Build 26605: arc lint + arc unit