crc64.h 539 B

123456789101112131415161718
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * See lib/crc64.c for the related specification and polynomial arithmetic.
  4. */
  5. #ifndef _LINUX_CRC64_H
  6. #define _LINUX_CRC64_H
  7. #include <linux/types.h>
  8. #define CRC64_ROCKSOFT_STRING "crc64-rocksoft"
  9. u64 __pure crc64_be(u64 crc, const void *p, size_t len);
  10. u64 __pure crc64_rocksoft_generic(u64 crc, const void *p, size_t len);
  11. u64 crc64_rocksoft(const unsigned char *buffer, size_t len);
  12. u64 crc64_rocksoft_update(u64 crc, const unsigned char *buffer, size_t len);
  13. #endif /* _LINUX_CRC64_H */