Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * See lib/crc64.c for the related specification and polynomial arithmetic.
0004  */
0005 #ifndef _LINUX_CRC64_H
0006 #define _LINUX_CRC64_H
0007 
0008 #include <linux/types.h>
0009 
0010 #define CRC64_ROCKSOFT_STRING "crc64-rocksoft"
0011 
0012 u64 __pure crc64_be(u64 crc, const void *p, size_t len);
0013 u64 __pure crc64_rocksoft_generic(u64 crc, const void *p, size_t len);
0014 
0015 u64 crc64_rocksoft(const unsigned char *buffer, size_t len);
0016 u64 crc64_rocksoft_update(u64 crc, const unsigned char *buffer, size_t len);
0017 
0018 #endif /* _LINUX_CRC64_H */