HomeFreeBSD

cryptosoft, ccr: Use crp_iv directly for AES-CCM and AES-GCM.

Description

cryptosoft, ccr: Use crp_iv directly for AES-CCM and AES-GCM.

Rather than copying crp_iv to a local array on the stack that is then
passed to xform reinit routines, pass crp_iv directly and remove the
local copy.

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

(cherry picked from commit 5ae5ed5b8fd2955378ab67ba127cad8c981678ab)

Details

Provenance
jhbAuthored on Oct 6 2021, 9:08 PM
Reviewer
markj
Differential Revision
D32106: cryptosoft, ccr: Use crp_iv directly for AES-CCM and AES-GCM.
Parents
rGde705beeef63: crypto: Permit variable-sized IVs for ciphers with a reinit hook.
Branches
Unknown
Tags
Unknown