]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add Chacha20-Poly1305 as a KTLS cipher suite.
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 18 Feb 2021 17:23:59 +0000 (09:23 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 23 Nov 2021 23:11:44 +0000 (15:11 -0800)
commitb7f27a60ac72c4d0f7740a6d48356c3fc68360d5
tree5e1055f4bdc26cd39e015d2cf5b93cb1b5d48597
parentff590791ff6d69c65118cf396c431f2f07b50a75
Add Chacha20-Poly1305 as a KTLS cipher suite.

Chacha20-Poly1305 for TLS is an AEAD cipher suite for both TLS 1.2 and
TLS 1.3 (RFCs 7905 and 8446).  For both versions, Chacha20 uses the
server and client IVs as implicit nonces xored with the record
sequence number to generate the per-record nonce matching the
construction used with AES-GCM for TLS 1.3.

Reviewed by: gallatin
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D27839

(cherry picked from commit 9c64fc40290e08f6dc6b75aa04084b04e48a61af)
sys/kern/uipc_ktls.c
sys/sys/ktls.h