Page MenuHomeFreeBSD

Add stricter checking on mac key lengths.
ClosedPublic

Authored by jhb on Jan 8 2020, 8:01 PM.

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 Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 28555
Build 26605: arc lint + arc unit

Event Timeline

jhb created this revision.Jan 8 2020, 8:01 PM
cem accepted this revision.Jan 9 2020, 12:35 AM
This revision is now accepted and ready to land.Jan 9 2020, 12:35 AM
This revision was automatically updated to reflect the committed changes.