1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */ 1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */ 2 /* << 3 * Helper functions for BLAKE2s implementation << 4 * Keep this in sync with the corresponding BL << 5 */ << 6 2 7 #ifndef _CRYPTO_INTERNAL_BLAKE2S_H 3 #ifndef _CRYPTO_INTERNAL_BLAKE2S_H 8 #define _CRYPTO_INTERNAL_BLAKE2S_H 4 #define _CRYPTO_INTERNAL_BLAKE2S_H 9 5 10 #include <crypto/blake2s.h> 6 #include <crypto/blake2s.h> 11 #include <linux/string.h> << 12 7 13 void blake2s_compress_generic(struct blake2s_s !! 8 void blake2s_compress_generic(struct blake2s_state *state,const u8 *block, 14 size_t nblocks, 9 size_t nblocks, const u32 inc); 15 10 16 void blake2s_compress(struct blake2s_state *st !! 11 void blake2s_compress_arch(struct blake2s_state *state,const u8 *block, 17 size_t nblocks, const u3 !! 12 size_t nblocks, const u32 inc); 18 13 19 bool blake2s_selftest(void); !! 14 static inline void blake2s_set_lastblock(struct blake2s_state *state) >> 15 { >> 16 state->f[0] = -1; >> 17 } 20 18 21 #endif /* _CRYPTO_INTERNAL_BLAKE2S_H */ 19 #endif /* _CRYPTO_INTERNAL_BLAKE2S_H */ 22 20
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.