Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _LINUX_CRC_T10DIF_H
0003 #define _LINUX_CRC_T10DIF_H
0004 
0005 #include <linux/types.h>
0006 
0007 #define CRC_T10DIF_DIGEST_SIZE 2
0008 #define CRC_T10DIF_BLOCK_SIZE 1
0009 #define CRC_T10DIF_STRING "crct10dif"
0010 
0011 extern __u16 crc_t10dif_generic(__u16 crc, const unsigned char *buffer,
0012                 size_t len);
0013 extern __u16 crc_t10dif(unsigned char const *, size_t);
0014 extern __u16 crc_t10dif_update(__u16 crc, unsigned char const *, size_t);
0015 
0016 #endif