git: crypto: Add hchacha20() for implementing XChaCha20-Poly1305 AEAD
Aaron LI
aly at crater.dragonflybsd.org
Sat Jan 13 06:01:35 PST 2024
commit ec5a219c36b9cdf8f8c0b84711675ea0e9502feb
Author: Aaron LI <aly at aaronly.me>
Date: Tue Nov 21 17:58:29 2023 +0800
crypto: Add hchacha20() for implementing XChaCha20-Poly1305 AEAD
Derived from OpenBSD. I changed memcpy() to multiple U32TO8_LITTLE()s,
so the output key is in the standard little-endian format.
Reference:
- RFC draft: XChaCha: eXtended-nonce ChaCha and AEAD_XChaCha20_Poly1305
Summary of changes:
sys/crypto/chacha20/chacha.c | 48 ++++++++++++++++++++++++++++++++++++++++++++
sys/crypto/chacha20/chacha.h | 3 +++
2 files changed, 51 insertions(+)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ec5a219c36b9cdf8f8c0b84711675ea0e9502feb
--
DragonFly BSD source repository
More information about the Commits
mailing list