Skip to content

Commit 06cc2af

Browse files
committed
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>
1 parent f441ba2 commit 06cc2af

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎include/crypto/chacha20poly1305.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,6 @@ bool chacha20poly1305_decrypt_sg_inplace(struct scatterlist *src, size_t src_len
4545
const u64 nonce,
4646
const u8 key[CHACHA20POLY1305_KEY_SIZE]);
4747

48+
bool chacha20poly1305_selftest(void);
49+
4850
#endif /* __CHACHA20POLY1305_H */

‎lib/crypto/chacha20poly1305.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121

2222
#define CHACHA_KEY_WORDS (CHACHA_KEY_SIZE / sizeof(u32))
2323

24-
bool __init chacha20poly1305_selftest(void);
25-
2624
static void chacha_load_key(u32 *k, const u8 *in)
2725
{
2826
k[0] = get_unaligned_le32(in);

0 commit comments

Comments
 (0)