hash.h 421 B

1234567891011121314151617
  1. #ifndef CRYPTO_HASH_H
  2. #define CRYPTO_HASH_H
  3. #include <linux/types.h>
  4. #define CRYPTO_HASH_SIZE_MAX 32
  5. void btrfs_hash_init(void);
  6. int hash_crc32c(const u8 *buf, size_t length, u8 *out);
  7. int hash_xxhash(const u8 *buf, size_t length, u8 *out);
  8. int hash_sha256(const u8 *buf, size_t length, u8 *out);
  9. u32 crc32c(u32 seed, const void * data, size_t len);
  10. /* Blake2B is not yet supported due to lack of library */
  11. #endif