Page MenuHomeFreeBSD

crypto: Test all of the AES-CCM KAT vectors.
ClosedPublic

Authored by jhb on Sep 24 2021, 6:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 26, 2:42 PM
Unknown Object (File)
Fri, Nov 22, 10:26 PM
Unknown Object (File)
Nov 16 2024, 10:27 PM
Unknown Object (File)
Oct 31 2024, 7:00 AM
Unknown Object (File)
Oct 12 2024, 11:06 AM
Unknown Object (File)
Oct 2 2024, 5:31 AM
Unknown Object (File)
Oct 1 2024, 10:45 PM
Unknown Object (File)
Oct 1 2024, 6:17 PM
Subscribers

Details

Summary

Previously, only test vectors which used the default nonce and tag
sizes (12 and 16, respectively) were tested. This now tests all of
the vectors. This exposed some additional issues around requests with
an empty payload (which wasn't supported) and an empty AAD (which
falls back to CIOCCRYPT instead of CIOCCRYPTAEAD).

  • Make use of the 'ivlen' and 'maclen' fields for CIOGSESSION2 to test AES-CCM vectors with non-default nonce and tag lengths.
  • Permit requests with an empty payload.
  • Permit an input MAC for requests without AAD.

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 41723
Build 38612: arc lint + arc unit

Event Timeline

With the fixes in this series, all of the tests pass on cryptosoft0, aesni0, and ccr0. I have not tested safexcel0.

This revision is now accepted and ready to land.Sep 28 2021, 4:11 PM
This revision was automatically updated to reflect the committed changes.