GNU Linux-libre 4.9.333-gnu1
[releases.git] / include / crypto / internal / blake2s.h
1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */
2
3 #ifndef _CRYPTO_INTERNAL_BLAKE2S_H
4 #define _CRYPTO_INTERNAL_BLAKE2S_H
5
6 #include <crypto/blake2s.h>
7
8 void blake2s_compress_generic(struct blake2s_state *state,const u8 *block,
9                               size_t nblocks, const u32 inc);
10
11 void blake2s_compress_arch(struct blake2s_state *state,const u8 *block,
12                            size_t nblocks, const u32 inc);
13
14 static inline void blake2s_set_lastblock(struct blake2s_state *state)
15 {
16         state->f[0] = -1;
17 }
18
19 #endif /* _CRYPTO_INTERNAL_BLAKE2S_H */