]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
crypto: Permit variable-sized IVs for ciphers with a reinit hook.
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 6 Oct 2021 21:08:46 +0000 (14:08 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Wed, 6 Oct 2021 21:08:46 +0000 (14:08 -0700)
commit1833d6042c9a0116e8a1198256fd8fbc99cb11ad
tree153cabff0be6b97e480addd4eeafc719b697e783
parentcb128893b92994456107d6ca722fdf6e5028eacc
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
sys/crypto/chacha20/chacha-sw.c
sys/dev/cxgbe/crypto/t4_crypto.c
sys/opencrypto/cryptosoft.c
sys/opencrypto/xform_aes_icm.c
sys/opencrypto/xform_aes_xts.c
sys/opencrypto/xform_chacha20_poly1305.c
sys/opencrypto/xform_enc.h