crypto: chacha20poly1305 - Add an IPsec variant for RFC7539 AEAD
authorMartin Willi <martin@strongswan.org>
Mon, 1 Jun 2015 11:44:02 +0000 (13:44 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 4 Jun 2015 07:04:53 +0000 (15:04 +0800)
commit4db4ad26096c4c1e579f9a957ca7752fe02bf7b4
treec2673dc8798f506e26771fc857f0dea1c3d50ff2
parentaf2b76b53a0668ff85b34cb108fefa85d72bb9c6
crypto: chacha20poly1305 - Add an IPsec variant for RFC7539 AEAD

draft-ietf-ipsecme-chacha20-poly1305 defines the use of ChaCha20/Poly1305 in
ESP. It uses additional four byte key material as a salt, which is then used
with an 8 byte IV to form the ChaCha20 nonce as defined in the RFC7539.

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>
crypto/chacha20poly1305.c