]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Support separate output buffers for aesni(4).
authorJohn Baldwin <jhb@FreeBSD.org>
Mon, 25 May 2020 22:30:44 +0000 (22:30 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Mon, 25 May 2020 22:30:44 +0000 (22:30 +0000)
commita639f9379b90e2f0e7e96cd33b43ad1cd24d062d
tree2dffef6a1de04e5dc89838c6d40c91d9e184a5a1
parent2adc3c9417ba8aa27432f08081a021ecc00199d7
Support separate output buffers for aesni(4).

The backend routines aesni(4) call for specific encryption modes all
expect virtually contiguous input/output buffers.  If the existing
output buffer is virtually contiguous, always write to the output
buffer directly from the mode-specific routines.  If the output buffer
is not contiguous, then a temporary buffer is allocated whose output
is then copied to the output buffer.  If the input buffer is not
contiguous, then the existing buffer used to hold the input is also
used to hold temporary output.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D24545
sys/crypto/aesni/aesni.c