A request without AAD for an AEAD cipher can be submitted via
CIOCCRYPT rather than CIOCCRYPTAEAD.
Sponsored by: The FreeBSD Foundation
Differential D32108
cryptodev: Permit CIOCCRYPT for AEAD ciphers. jhb on Sep 24 2021, 6:04 PM. Authored by Tags None Referenced Files
Details A request without AAD for an AEAD cipher can be submitted via Sponsored by: The FreeBSD Foundation
Diff Detail
Event TimelineComment Actions This was triggered by cryptotest.py since it uses CIOCCRYPT for requests without AAD and some of the AES-CCM tests use empty AAD. Comment Actions 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. |