]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
KTLS: Construct IV directly in crp.crp_iv for TLS 1.3 AEAD encryption.
authorJohn Baldwin <jhb@FreeBSD.org>
Fri, 22 Apr 2022 22:52:27 +0000 (15:52 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Fri, 22 Apr 2022 22:52:27 +0000 (15:52 -0700)
commit663ae8f7f949b4d4fc0c91d8e9b2a01f56e40dc5
tree2df989d240a4e8ebb8884b5ef9609f46b5ba1e18
parenta4c5d490f6be56468b2a088a5f6169846e39bd84
KTLS: Construct IV directly in crp.crp_iv for TLS 1.3 AEAD encryption.

Previously this used a temporary nonce[] buffer.  The decrypt hook for
TLS 1.3 as well as the hooks for TLS 1.2 already constructed the IV
directly in crp.crp_iv.

Reviewed by: hselasky
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D35027
sys/opencrypto/ktls_ocf.c