Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 05e10b45 authored by Herbert Xu's avatar Herbert Xu Committed by Alistair Delva
Browse files

UPSTREAM: crypto: lib/blake2s - Move selftest prototype into header file



This patch fixes a missing prototype warning on blake2s_selftest.

Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>

(cherry picked from commit ce0d5d63e897cc7c3a8fd043c7942fc6a78ec6f4)
Bug: 152722841
Change-Id: Ieb19048d60f6c9dc36cefda8b09b3d5c95e9118e
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
parent 29ab2a57
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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,
			   size_t nblocks, const u32 inc);

bool blake2s_selftest(void);

static inline void blake2s_set_lastblock(struct blake2s_state *state)
{
	state->f[0] = -1;
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
 * 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>

/*
+0 −2
Original line number Diff line number Diff line
@@ -17,8 +17,6 @@
#include <linux/bug.h>
#include <asm/unaligned.h>

bool blake2s_selftest(void);

void blake2s_update(struct blake2s_state *state, const u8 *in, size_t inlen)
{
	const size_t fill = BLAKE2S_BLOCK_SIZE - state->buflen;