summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/crypto/crc.h16
-rw-r--r--include/digest.h1
2 files changed, 17 insertions, 0 deletions
diff --git a/include/crypto/crc.h b/include/crypto/crc.h
new file mode 100644
index 0000000000..6428634d0a
--- /dev/null
+++ b/include/crypto/crc.h
@@ -0,0 +1,16 @@
+/*
+ * Common values for CRC algorithms
+ */
+
+#ifndef _CRYPTO_CRC_H
+#define _CRYPTO_CRC_H
+
+#include <linux/types.h>
+
+#define CRC32_DIGEST_SIZE 4
+
+struct crc32_state {
+ ulong crc;
+};
+
+#endif
diff --git a/include/digest.h b/include/digest.h
index fe30cc27e0..4552e58255 100644
--- a/include/digest.h
+++ b/include/digest.h
@@ -41,6 +41,7 @@ enum hash_algo {
HASH_ALGO_TGR_128,
HASH_ALGO_TGR_160,
HASH_ALGO_TGR_192,
+ HASH_ALGO_CRC32,
HASH_ALGO__LAST
};