summaryrefslogtreecommitdiffstats
path: root/net/xfrm
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2015-06-01 13:44:04 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2015-06-04 09:04:55 +0200
commitb08b6b779112dd7c862d86780b5155d382f3cef6 (patch)
treecb54ab74338d6285c54629f1926f24cd3c7c1dd7 /net/xfrm
parentcrypto: testmgr - Add draft-ietf-ipsecme-chacha20-poly1305 test vector (diff)
downloadlinux-b08b6b779112dd7c862d86780b5155d382f3cef6.tar.xz
linux-b08b6b779112dd7c862d86780b5155d382f3cef6.zip
xfrm: Define ChaCha20-Poly1305 AEAD XFRM algo for IPsec users
Signed-off-by: Martin Willi <martin@strongswan.org> Acked-by: Steffen Klassert <steffen.klassert@secunet.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'net/xfrm')
-rw-r--r--net/xfrm/xfrm_algo.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/net/xfrm/xfrm_algo.c b/net/xfrm/xfrm_algo.c
index 67266b7501f1..42f7c76cf853 100644
--- a/net/xfrm/xfrm_algo.c
+++ b/net/xfrm/xfrm_algo.c
@@ -159,6 +159,18 @@ static struct xfrm_algo_desc aead_list[] = {
.sadb_alg_maxbits = 256
}
},
+{
+ .name = "rfc7539esp(chacha20,poly1305)",
+
+ .uinfo = {
+ .aead = {
+ .geniv = "seqniv",
+ .icv_truncbits = 128,
+ }
+ },
+
+ .pfkey_supported = 0,
+},
};
static struct xfrm_algo_desc aalg_list[] = {