WIP FPC-III support
[linux/fpc-iii.git] / include / crypto / internal / blake2s.h
blob6e376ae6b6b58db536281eef674d6e61182c5c1d
1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */
3 #ifndef BLAKE2S_INTERNAL_H
4 #define BLAKE2S_INTERNAL_H
6 #include <crypto/blake2s.h>
8 struct blake2s_tfm_ctx {
9 u8 key[BLAKE2S_KEY_SIZE];
10 unsigned int keylen;
13 void blake2s_compress_generic(struct blake2s_state *state,const u8 *block,
14 size_t nblocks, const u32 inc);
16 void blake2s_compress_arch(struct blake2s_state *state,const u8 *block,
17 size_t nblocks, const u32 inc);
19 bool blake2s_selftest(void);
21 static inline void blake2s_set_lastblock(struct blake2s_state *state)
23 state->f[0] = -1;
26 #endif /* BLAKE2S_INTERNAL_H */