aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/crc-t10dif.h
diff options
context:
space:
mode:
authorTim Chen <tim.c.chen@linux.intel.com>2013-05-01 12:52:48 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2013-05-20 20:11:01 +0800
commit2d31e518a42828df7877bca23a958627d60408bc (patch)
tree83630715e5a962e734a936310adae2731edb8a3d /include/linux/crc-t10dif.h
parentcrypto: caam - FIX RNG init for RNG greater than equal to 4 (diff)
downloadlinux-dev-2d31e518a42828df7877bca23a958627d60408bc.tar.xz
linux-dev-2d31e518a42828df7877bca23a958627d60408bc.zip
crypto: crct10dif - Wrap crc_t10dif function all to use crypto transform framework
When CRC T10 DIF is calculated using the crypto transform framework, we wrap the crc_t10dif function call to utilize it. This allows us to take advantage of any accelerated CRC T10 DIF transform that is plugged into the crypto framework. Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/linux/crc-t10dif.h')
-rw-r--r--include/linux/crc-t10dif.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/crc-t10dif.h b/include/linux/crc-t10dif.h
index a9c96d865ee7..b3cb71f0d3b0 100644
--- a/include/linux/crc-t10dif.h
+++ b/include/linux/crc-t10dif.h
@@ -3,6 +3,10 @@
#include <linux/types.h>
+#define CRC_T10DIF_DIGEST_SIZE 2
+#define CRC_T10DIF_BLOCK_SIZE 1
+
+__u16 crc_t10dif_generic(__u16 crc, const unsigned char *buffer, size_t len);
__u16 crc_t10dif(unsigned char const *, size_t);
#endif