diff options
author | Martin Willi <martin@strongswan.org> | 2015-07-16 19:14:05 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-07-17 21:20:26 +0800 |
commit | 9b18b532cdae77ffa57fd7449f5eee1d5078aba4 (patch) | |
tree | d13ceeefb0807d19b01a0f5e3a9b917c3bf2380e /crypto/chacha20poly1305.c | |
parent | d5ea7e6b15ea29adc3949a7deade46402dc8534a (diff) | |
download | linux-crypto-9b18b532cdae77ffa57fd7449f5eee1d5078aba4.tar.gz linux-crypto-9b18b532cdae77ffa57fd7449f5eee1d5078aba4.zip |
crypto: poly1305 - Export common Poly1305 helpers
As architecture specific drivers need a software fallback, export Poly1305
init/update/final functions together with some helpers in a header file.
Signed-off-by: Martin Willi <martin@strongswan.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r-- | crypto/chacha20poly1305.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crypto/chacha20poly1305.c b/crypto/chacha20poly1305.c index 410554d3..b71445f2 100644 --- a/crypto/chacha20poly1305.c +++ b/crypto/chacha20poly1305.c @@ -14,6 +14,7 @@ #include <crypto/internal/skcipher.h> #include <crypto/scatterwalk.h> #include <crypto/chacha20.h> +#include <crypto/poly1305.h> #include <linux/err.h> #include <linux/init.h> #include <linux/kernel.h> @@ -21,9 +22,6 @@ #include "internal.h" -#define POLY1305_BLOCK_SIZE 16 -#define POLY1305_DIGEST_SIZE 16 -#define POLY1305_KEY_SIZE 32 #define CHACHAPOLY_IV_SIZE 12 struct chachapoly_instance_ctx { |