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

(cherry picked from commit 1833d6042c9a0116e8a1198256fd8fbc99cb11ad)
(cherry picked from commit d586c978b9b4216869e589daa5bbcc33225a0e35)

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
rG757d96ade64c: ossl: Use crypto_cursor_segment().
Branches
Unknown
Tags
Unknown