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, Mar 28, 1:26 PM
Unknown Object (File)
Dec 20 2023, 8:21 AM
Unknown Object (File)
Sep 26 2023, 1:05 PM
Unknown Object (File)
Sep 11 2023, 8:48 PM
Unknown Object (File)
Jul 23 2023, 2:43 AM
Unknown Object (File)
Jul 1 2023, 10:02 AM
Unknown Object (File)
Jul 1 2023, 10:00 AM
Unknown Object (File)
Jul 1 2023, 9:58 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

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