mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-12 17:37:13 +00:00
ae9f8bff30
Add the definition to the checksum types and let mkfs accept it. Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: David Sterba <dsterba@suse.com>
13 lines
282 B
C
13 lines
282 B
C
#ifndef CRYPTO_HASH_H
|
|
#define CRYPTO_HASH_H
|
|
|
|
#include "../kerncompat.h"
|
|
|
|
#define CRYPTO_HASH_SIZE_MAX 32
|
|
|
|
int hash_crc32c(const u8 *buf, size_t length, u8 *out);
|
|
int hash_xxhash(const u8 *buf, size_t length, u8 *out);
|
|
int hash_sha256(const u8 *buf, size_t length, u8 *out);
|
|
|
|
#endif
|