aboutsummaryrefslogtreecommitdiff
path: root/sys/opencrypto/xform_auth.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2021-02-18 17:22:18 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2021-02-18 17:26:23 +0000
commitdd2e1352b68aa33f7f6f8c19aaf88cf287013ae8 (patch)
treed47773e14baeefcfa6bbb17ec0c710544a59d14a /sys/opencrypto/xform_auth.h
parentfc8fc743d89388c0c5b97a491428fab2b36beac8 (diff)
downloadsrc-dd2e1352b68aa33f7f6f8c19aaf88cf287013ae8.tar.gz
src-dd2e1352b68aa33f7f6f8c19aaf88cf287013ae8.zip
Add an implementation of CHACHA20_POLY1305 to cryptosoft.
This uses the chacha20 IETF and poly1305 implementations from libsodium. A seperate auth_hash is created for the auth side whose Setkey method derives the poly1305 key from the AEAD key and nonce as described in RFC 8439. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D27837
Diffstat (limited to 'sys/opencrypto/xform_auth.h')
-rw-r--r--sys/opencrypto/xform_auth.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/opencrypto/xform_auth.h b/sys/opencrypto/xform_auth.h
index dbdb278209b5..6427965671d3 100644
--- a/sys/opencrypto/xform_auth.h
+++ b/sys/opencrypto/xform_auth.h
@@ -84,6 +84,7 @@ extern struct auth_hash auth_hash_poly1305;
extern struct auth_hash auth_hash_ccm_cbc_mac_128;
extern struct auth_hash auth_hash_ccm_cbc_mac_192;
extern struct auth_hash auth_hash_ccm_cbc_mac_256;
+extern struct auth_hash auth_hash_chacha20_poly1305;
union authctx {
SHA1_CTX sha1ctx;