blake2s.h 586 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0 OR MIT */
  2. /*
  3. * Helper functions for BLAKE2s implementations.
  4. * Keep this in sync with the corresponding BLAKE2b header.
  5. */
  6. #ifndef _CRYPTO_INTERNAL_BLAKE2S_H
  7. #define _CRYPTO_INTERNAL_BLAKE2S_H
  8. #include <crypto/blake2s.h>
  9. #include <linux/string.h>
  10. void blake2s_compress_generic(struct blake2s_state *state, const u8 *block,
  11. size_t nblocks, const u32 inc);
  12. void blake2s_compress(struct blake2s_state *state, const u8 *block,
  13. size_t nblocks, const u32 inc);
  14. bool blake2s_selftest(void);
  15. #endif /* _CRYPTO_INTERNAL_BLAKE2S_H */