Page MenuHomeFreeBSD

cryptodev: Permit CIOCCRYPT for AEAD ciphers.
ClosedPublic

Authored by jhb on Sep 24 2021, 6:04 PM.
Tags
None
Referenced Files
F148784748: D32108.id96377.diff
Fri, Mar 20, 5:20 AM
F148784730: D32108.id96377.diff
Fri, Mar 20, 5:20 AM
Unknown Object (File)
Sun, Mar 15, 12:22 PM
Unknown Object (File)
Sun, Mar 15, 4:27 AM
Unknown Object (File)
Wed, Mar 11, 7:54 AM
Unknown Object (File)
Tue, Mar 3, 12:31 PM
Unknown Object (File)
Thu, Feb 26, 12:44 PM
Unknown Object (File)
Feb 15 2026, 8:53 PM
Subscribers

Details

Summary

A request without AAD for an AEAD cipher can be submitted via
CIOCCRYPT rather than CIOCCRYPTAEAD.

Sponsored by: The FreeBSD Foundation

Diff Detail

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

Event Timeline

This was triggered by cryptotest.py since it uses CIOCCRYPT for requests without AAD and some of the AES-CCM tests use empty AAD.

crp_sanity() asserts that for AEAD requests the IV must be in a separate buffer, i.e., CRYPTO_F_IV_SEPARATE is set. cryptodev_aead() ensures this, but cryptodev_op() does not.

Mmm, true. I will add a test that rejects AEAD requests without a separate IV.

  • Reject AEAD requests without an explicit IV.
This revision is now accepted and ready to land.Oct 1 2021, 9:41 PM
This revision was automatically updated to reflect the committed changes.