mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
crypto: lib/blake2s - Move selftest prototype into header file
This patch fixes a missing prototype warning on blake2s_selftest. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
f3456b9fd2
commit
ce0d5d63e8
@ -16,6 +16,8 @@ void blake2s_compress_generic(struct blake2s_state *state,const u8 *block,
|
|||||||
void blake2s_compress_arch(struct blake2s_state *state,const u8 *block,
|
void blake2s_compress_arch(struct blake2s_state *state,const u8 *block,
|
||||||
size_t nblocks, const u32 inc);
|
size_t nblocks, const u32 inc);
|
||||||
|
|
||||||
|
bool blake2s_selftest(void);
|
||||||
|
|
||||||
static inline void blake2s_set_lastblock(struct blake2s_state *state)
|
static inline void blake2s_set_lastblock(struct blake2s_state *state)
|
||||||
{
|
{
|
||||||
state->f[0] = -1;
|
state->f[0] = -1;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
* Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
|
* Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <crypto/blake2s.h>
|
#include <crypto/internal/blake2s.h>
|
||||||
#include <linux/string.h>
|
#include <linux/string.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -17,8 +17,6 @@
|
|||||||
#include <linux/bug.h>
|
#include <linux/bug.h>
|
||||||
#include <asm/unaligned.h>
|
#include <asm/unaligned.h>
|
||||||
|
|
||||||
bool blake2s_selftest(void);
|
|
||||||
|
|
||||||
void blake2s_update(struct blake2s_state *state, const u8 *in, size_t inlen)
|
void blake2s_update(struct blake2s_state *state, const u8 *in, size_t inlen)
|
||||||
{
|
{
|
||||||
const size_t fill = BLAKE2S_BLOCK_SIZE - state->buflen;
|
const size_t fill = BLAKE2S_BLOCK_SIZE - state->buflen;
|
||||||
|
Loading…
Reference in New Issue
Block a user