From 61ddbd35207af8dbd9b1a0c17619148179235203 Mon Sep 17 00:00:00 2001 From: Yegor Yefremov Date: Wed, 25 May 2016 09:51:13 +0200 Subject: crypto: add CRC32 digest CRC32 digest can be used to check CRC32 hashes in FIT images etc. Signed-off-by: Yegor Yefremov Signed-off-by: Sascha Hauer --- include/crypto/crc.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 include/crypto/crc.h (limited to 'include/crypto/crc.h') 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 + +#define CRC32_DIGEST_SIZE 4 + +struct crc32_state { + ulong crc; +}; + +#endif -- cgit v1.2.3