Page MenuHomeFreeBSD

crypto: Support multiple nonce lengths for AES-CCM.
ClosedPublic

Authored by jhb on Sep 24 2021, 6:04 PM.
Tags
None
Referenced Files
F111637555: D32111.id95645.diff
Thu, Mar 6, 8:34 AM
F111636834: D32111.id96380.diff
Thu, Mar 6, 8:26 AM
F111617884: D32111.diff
Thu, Mar 6, 2:06 AM
Unknown Object (File)
Sun, Feb 23, 9:36 AM
Unknown Object (File)
Fri, Feb 21, 6:35 PM
Unknown Object (File)
Mon, Feb 17, 10:04 PM
Unknown Object (File)
Dec 16 2024, 1:19 PM
Unknown Object (File)
Dec 12 2024, 3:05 AM
Subscribers

Details

Summary

Permit nonces of lengths 7 through 13 in the OCF framework and the
cryptosoft driver. A helper function (ccm_max_payload_length) can be
used in OCF drivers to reject CCM requests which are too large for the
specified nonce length.

Sponsored by: Chelsio Communications, The FreeBSD Foundation

Diff Detail

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

Event Timeline

The cryptosoft changes were tested both by cryptocheck and the updated crypotest.py at the end of the series that tested all the AES-CCM KAT vectors. Note that the KAT vectors also required later fixes for truncated tags, however, cryptocheck was able to verify variable nonce lengths with a 16 byte tag.

This revision is now accepted and ready to land.Sep 24 2021, 7:33 PM