aboutsummaryrefslogtreecommitdiffstats
path: root/roms/u-boot/fs/btrfs/crypto/hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'roms/u-boot/fs/btrfs/crypto/hash.h')
-rw-r--r--roms/u-boot/fs/btrfs/crypto/hash.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/roms/u-boot/fs/btrfs/crypto/hash.h b/roms/u-boot/fs/btrfs/crypto/hash.h
new file mode 100644
index 000000000..d1ba1fa37
--- /dev/null
+++ b/roms/u-boot/fs/btrfs/crypto/hash.h
@@ -0,0 +1,17 @@
+#ifndef CRYPTO_HASH_H
+#define CRYPTO_HASH_H
+
+#include <linux/types.h>
+
+#define CRYPTO_HASH_SIZE_MAX 32
+
+void btrfs_hash_init(void);
+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);
+
+u32 crc32c(u32 seed, const void * data, size_t len);
+
+/* Blake2B is not yet supported due to lack of library */
+
+#endif