HomeFreeBSD

crypto: Permit variable-sized IVs for ciphers with a reinit hook.

Description

crypto: Permit variable-sized IVs for ciphers with a reinit hook.

Add a 'len' argument to the reinit hook in 'struct enc_xform' to
permit support for AEAD ciphers such as AES-CCM and Chacha20-Poly1305
which support different nonce lengths.

Reviewed by: markj
Sponsored by: Chelsio Communications, The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32105

Details

Provenance
jhbAuthored on Oct 6 2021, 9:08 PM
Reviewer
markj
Differential Revision
D32105: crypto: Permit variable-sized IVs for ciphers with a reinit hook.
Parents
rGcb128893b929: ccp, ccr: Simplify drivers to assume an AES-GCM IV length of 12.
Branches
Unknown
Tags
Unknown