summaryrefslogtreecommitdiffstats
path: root/lib/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2020-07-08 04:41:13 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2020-07-16 13:49:04 +0200
commit06cc2afbbdf9a9e8df3e2f8db724997dd6e1b4ac (patch)
tree129aeece232242180c512f28a8d2823e28123b50 /lib/crypto
parentcrypto: mediatek - use AES library for GCM key derivation (diff)
downloadlinux-06cc2afbbdf9a9e8df3e2f8db724997dd6e1b4ac.tar.xz
linux-06cc2afbbdf9a9e8df3e2f8db724997dd6e1b4ac.zip
crypto: lib/chacha20poly1305 - Add missing function declaration
This patch adds a declaration for chacha20poly1305_selftest to silence a sparse warning. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'lib/crypto')
-rw-r--r--lib/crypto/chacha20poly1305.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/crypto/chacha20poly1305.c b/lib/crypto/chacha20poly1305.c
index ad0699ce702f..431e04280332 100644
--- a/lib/crypto/chacha20poly1305.c
+++ b/lib/crypto/chacha20poly1305.c
@@ -21,8 +21,6 @@
#define CHACHA_KEY_WORDS (CHACHA_KEY_SIZE / sizeof(u32))
-bool __init chacha20poly1305_selftest(void);
-
static void chacha_load_key(u32 *k, const u8 *in)
{
k[0] = get_unaligned_le32(in);