mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-26 22:24:09 +08:00
2d31e518a4
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>
13 lines
284 B
C
13 lines
284 B
C
#ifndef _LINUX_CRC_T10DIF_H
|
|
#define _LINUX_CRC_T10DIF_H
|
|
|
|
#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
|