freebsd-dev/sys/crypto/openssl
John Baldwin 42dcd39528 crypto: Support Chacha20-Poly1305 with a nonce size of 8 bytes.
This is useful for WireGuard which uses a nonce of 8 bytes rather
than the 12 bytes used for IPsec and TLS.

Note that this also fixes a (should be) harmless bug in ossl(4) where
the counter was incorrectly treated as a 64-bit counter instead of a
32-bit counter in terms of wrapping when using a 12 byte nonce.
However, this required a single message (TLS record) longer than 64 *
(2^32 - 1) bytes (about 256 GB) to trigger.

Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D32122
2021-10-06 14:08:49 -07:00
..
aarch64 Merge OpenSSL 1.1.1i. 2020-12-09 02:05:14 +00:00
amd64
arm OpenSSL: Regen assembly files for OpenSSL 1.1.1j 2021-02-17 00:35:11 -05:00
i386
ossl_aarch64.c ossl: port to arm64 2020-12-04 21:12:17 +00:00
ossl_chacha20.c crypto: Support Chacha20-Poly1305 with a nonce size of 8 bytes. 2021-10-06 14:08:49 -07:00
ossl_chacha.h ossl: Add ChaCha20 cipher support. 2021-03-03 15:20:57 -08:00
ossl_hash.h
ossl_poly1305.c ossl: Add support for the ChaCha20 + Poly1305 AEAD cipher from RFC 8439 2021-03-03 15:20:57 -08:00
ossl_poly1305.h ossl: Add support for the ChaCha20 + Poly1305 AEAD cipher from RFC 8439 2021-03-03 15:20:57 -08:00
ossl_sha1.c
ossl_sha256.c
ossl_sha512.c
ossl_sha.h
ossl_x86.c ossl: split out x86 bits to x86/ossl_cpuid.c 2020-12-04 20:54:20 +00:00
ossl.c ossl: Add support for the ChaCha20 + Poly1305 AEAD cipher from RFC 8439 2021-03-03 15:20:57 -08:00
ossl.h ossl: Add support for the ChaCha20 + Poly1305 AEAD cipher from RFC 8439 2021-03-03 15:20:57 -08:00