Commit 06cc2afb authored by Herbert Xu's avatar Herbert Xu

crypto: lib/chacha20poly1305 - Add missing function declaration

This patch adds a declaration for chacha20poly1305_selftest to
silence a sparse warning.
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent f441ba2a
...@@ -45,4 +45,6 @@ bool chacha20poly1305_decrypt_sg_inplace(struct scatterlist *src, size_t src_len ...@@ -45,4 +45,6 @@ bool chacha20poly1305_decrypt_sg_inplace(struct scatterlist *src, size_t src_len
const u64 nonce, const u64 nonce,
const u8 key[CHACHA20POLY1305_KEY_SIZE]); const u8 key[CHACHA20POLY1305_KEY_SIZE]);
bool chacha20poly1305_selftest(void);
#endif /* __CHACHA20POLY1305_H */ #endif /* __CHACHA20POLY1305_H */
...@@ -21,8 +21,6 @@ ...@@ -21,8 +21,6 @@
#define CHACHA_KEY_WORDS (CHACHA_KEY_SIZE / sizeof(u32)) #define CHACHA_KEY_WORDS (CHACHA_KEY_SIZE / sizeof(u32))
bool __init chacha20poly1305_selftest(void);
static void chacha_load_key(u32 *k, const u8 *in) static void chacha_load_key(u32 *k, const u8 *in)
{ {
k[0] = get_unaligned_le32(in); k[0] = get_unaligned_le32(in);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment