freebsd-skq/sys/crypto/aesni
Marcin Wojtas efac54cb2f Add support for ESN in AES-NI crypto driver
This patch adds support for IPsec ESN (Extended Sequence Numbers) in
encrypt and authenticate mode (eg. AES-CBC and SHA256) and combined mode
(eg. AES-GCM).

For the encrypt and authenticate mode the ESN is stored in separate
crp_esn buffer because the high-order 32 bits of the sequence number are
appended after the Next Header (RFC 4303).

For the combined modes the high-order 32 bits of the sequence number
[e.g.  RFC 4106, Chapter 5 AAD Construction] are part of crp_aad
(prepared by netipsec layer in case of ESN support enabled), therefore
non visible diff around combined modes.

Submitted by:           Grzegorz Jaszczyk <jaz@semihalf.com>
                        Patryk Duda <pdk@semihalf.com>
Reviewed by:            jhb
Differential revision:  https://reviews.freebsd.org/D22365
Obtained from:          Semihalf
Sponsored by:           Stormshield
2020-10-16 11:21:56 +00:00
..
aesencdec.h Regularize the Netflix copyright 2019-02-04 21:28:25 +00:00
aeskeys_amd64.S
aeskeys_i386.S
aesni_ccm.c Fix AES-CCM requests with an AAD size smaller than a single block. 2020-06-12 21:33:02 +00:00
aesni_ghash.c
aesni_os.h
aesni_wrap.c Refactor driver and consumer interfaces for OCF (in-kernel crypto). 2020-03-27 18:25:23 +00:00
aesni.c Add support for ESN in AES-NI crypto driver 2020-10-16 11:21:56 +00:00
aesni.h Add a <machine/fpu.h> for i386 that includes <machine/npx.h>. 2020-10-13 17:26:12 +00:00
intel_sha1.c aesni(4): Fix GCC build 2017-09-29 19:56:09 +00:00
intel_sha256.c aesni(4): Fix GCC build 2017-09-29 19:56:09 +00:00
sha_sse.h aesni(4): Add support for x86 SHA intrinsics 2017-09-26 23:12:32 +00:00