166d7fb94SJason A. Donenfeld /* SPDX-License-Identifier: GPL-2.0 OR MIT */ 28c4a93a1SEric Biggers /* 38c4a93a1SEric Biggers * Helper functions for BLAKE2s implementations. 48c4a93a1SEric Biggers * Keep this in sync with the corresponding BLAKE2b header. 58c4a93a1SEric Biggers */ 666d7fb94SJason A. Donenfeld 78786841bSEric Biggers #ifndef _CRYPTO_INTERNAL_BLAKE2S_H 88786841bSEric Biggers #define _CRYPTO_INTERNAL_BLAKE2S_H 966d7fb94SJason A. Donenfeld 1066d7fb94SJason A. Donenfeld #include <crypto/blake2s.h> 11057edc9cSEric Biggers #include <linux/string.h> 1266d7fb94SJason A. Donenfeld 1366d7fb94SJason A. Donenfeld void blake2s_compress_generic(struct blake2s_state *state, const u8 *block, 1466d7fb94SJason A. Donenfeld size_t nblocks, const u32 inc); 1566d7fb94SJason A. Donenfeld 16*6048fdccSJason A. Donenfeld void blake2s_compress(struct blake2s_state *state, const u8 *block, 1766d7fb94SJason A. Donenfeld size_t nblocks, const u32 inc); 1866d7fb94SJason A. Donenfeld 19ce0d5d63SHerbert Xu bool blake2s_selftest(void); 20ce0d5d63SHerbert Xu 218786841bSEric Biggers #endif /* _CRYPTO_INTERNAL_BLAKE2S_H */ 22