freebsd-src/sys/crypto/openssl/amd64
Mark Johnston 47d767dab5 ossl: Fix some bugs in the fallback AES-GCM implementation
gcm_*_aesni() are used when the AVX512 implementation is not available.
Fix two bugs which manifest when handling operations spanning multiple
segments:
- Avoid underflow when the length of the input is smaller than the
  residual.
- In gcm_decrypt_aesni(), ensure that we begin the operation at the
  right offset into the input and output buffers.

Reviewed by:	jhb
Fixes:		9b1d87286c ("ossl: Add a fallback AES-GCM implementation using AES-NI")
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D42838
2023-11-30 12:49:47 -05:00
..
aes-gcm-avx512.S sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
aes-x86_64.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00
aesni-gcm-x86_64.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00
aesni-mb-x86_64.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00
aesni-sha1-x86_64.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00
aesni-sha256-x86_64.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00
aesni-x86_64.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00
bsaes-x86_64.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00
chacha-x86_64.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00
cmll-x86_64.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00
e_padlock-x86_64.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00
ecp_nistz256-x86_64.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00
ghash-x86_64.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00
keccak1600-x86_64.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00
md5-x86_64.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00
ossl_aes_gcm.c ossl: Fix some bugs in the fallback AES-GCM implementation 2023-11-30 12:49:47 -05:00
poly1305-x86_64.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00
rc4-md5-x86_64.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00
rc4-x86_64.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00
rsaz-avx2.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00
rsaz-avx512.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00
rsaz-x86_64.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00
sha1-mb-x86_64.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00
sha1-x86_64.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00
sha256-mb-x86_64.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00
sha256-x86_64.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00
sha512-x86_64.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00
vpaes-x86_64.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00
wp-x86_64.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00
x86_64-gf2m.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00
x86_64-mont.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00
x86_64-mont5.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00
x86_64cpuid.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00
x25519-x86_64.S ossl: Update the generated assembly files from OpenSSL 3.0. 2023-08-29 14:44:15 -07:00