2019-09-25 13:37:26 +00:00
|
|
|
#ifndef CRYPTO_HASH_H
|
|
|
|
#define CRYPTO_HASH_H
|
|
|
|
|
|
|
|
#include "../kerncompat.h"
|
|
|
|
|
|
|
|
#define CRYPTO_HASH_SIZE_MAX 32
|
|
|
|
|
2019-06-10 12:56:11 +00:00
|
|
|
int hash_crc32c(const u8 *buf, size_t length, u8 *out);
|
2019-09-25 13:37:26 +00:00
|
|
|
int hash_xxhash(const u8 *buf, size_t length, u8 *out);
|
2019-10-07 11:13:26 +00:00
|
|
|
int hash_sha256(const u8 *buf, size_t length, u8 *out);
|
2019-10-07 16:19:51 +00:00
|
|
|
int hash_blake2b(const u8 *buf, size_t length, u8 *out);
|
2020-05-14 09:34:31 +00:00
|
|
|
int hash_hmac_sha256(struct btrfs_fs_info *fs_info, const u8 *buf,
|
|
|
|
size_t length, u8 *out);
|
2019-09-25 13:37:26 +00:00
|
|
|
|
|
|
|
#endif
|