Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 OR MIT */
0002 /*
0003  * Helper functions for BLAKE2s implementations.
0004  * Keep this in sync with the corresponding BLAKE2b header.
0005  */
0006 
0007 #ifndef _CRYPTO_INTERNAL_BLAKE2S_H
0008 #define _CRYPTO_INTERNAL_BLAKE2S_H
0009 
0010 #include <crypto/blake2s.h>
0011 #include <linux/string.h>
0012 
0013 void blake2s_compress_generic(struct blake2s_state *state, const u8 *block,
0014                   size_t nblocks, const u32 inc);
0015 
0016 void blake2s_compress(struct blake2s_state *state, const u8 *block,
0017               size_t nblocks, const u32 inc);
0018 
0019 bool blake2s_selftest(void);
0020 
0021 #endif /* _CRYPTO_INTERNAL_BLAKE2S_H */