]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Store the AAD in a separate buffer for KTLS.
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 23 Jun 2020 00:02:28 +0000 (00:02 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 23 Jun 2020 00:02:28 +0000 (00:02 +0000)
commit5b750b9a6889dda96c02517133fd2237311ecbb4
treec8376bb4f4ffef8c7f7580d067bf9a5a2143e715
parent6deb4131b89be4a011520a2926d45c90b0057bb6
Store the AAD in a separate buffer for KTLS.

For TLS 1.2 this permits reusing one of the existing iovecs without
always having to duplicate both.

While here, only duplicate the output iovec for TLS 1.3 if it will be
used.

Reviewed by: gallatin
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D25291
sys/opencrypto/ktls_ocf.c