mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-15 02:45:44 +00:00
2047b6de3d
Add definition, crypto wrappers and support to mkfs for blake2 for checksumming. There are 2 aliases either blake2 or blake2b. Signed-off-by: David Sterba <dsterba@suse.com>
14 lines
339 B
C
14 lines
339 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);
|
|
int hash_blake2b(const u8 *buf, size_t length, u8 *out);
|
|
|
|
#endif
|