Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
[linux-block.git] / include / linux / crc64.h
CommitLineData
feba04fd
CL
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
8#include <linux/types.h>
9
f3813f4b
KB
10#define CRC64_ROCKSOFT_STRING "crc64-rocksoft"
11
feba04fd 12u64 __pure crc64_be(u64 crc, const void *p, size_t len);
cbc0a40e
KB
13u64 __pure crc64_rocksoft_generic(u64 crc, const void *p, size_t len);
14
f3813f4b
KB
15u64 crc64_rocksoft(const unsigned char *buffer, size_t len);
16u64 crc64_rocksoft_update(u64 crc, const unsigned char *buffer, size_t len);
17
feba04fd 18#endif /* _LINUX_CRC64_H */