Files
Centos-kernel-stream-9/include/linux/crc64.h
T
Ming Lei 865ff228f3 crypto: add rocksoft 64b crc guard tag framework
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2083917

commit f3813f4b287e480b1fcd62ca798d8556644b8278
Author: Keith Busch <kbusch@kernel.org>
Date:   Thu Mar 3 12:13:10 2022 -0800

    crypto: add rocksoft 64b crc guard tag framework

    Hardware specific features may be able to calculate a crc64, so provide
    a framework for drivers to register their implementation. If nothing is
    registered, fallback to the generic table lookup implementation. The
    implementation is modeled after the crct10dif equivalent.

    Signed-off-by: Keith Busch <kbusch@kernel.org>
    Link: https://lore.kernel.org/r/20220303201312.3255347-7-kbusch@kernel.org
    Signed-off-by: Jens Axboe <axboe@kernel.dk>

Signed-off-by: Ming Lei <ming.lei@redhat.com>
2022-06-22 08:57:57 +08:00

19 lines
539 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* See lib/crc64.c for the related specification and polynomial arithmetic.
*/
#ifndef _LINUX_CRC64_H
#define _LINUX_CRC64_H
#include <linux/types.h>
#define CRC64_ROCKSOFT_STRING "crc64-rocksoft"
u64 __pure crc64_be(u64 crc, const void *p, size_t len);
u64 __pure crc64_rocksoft_generic(u64 crc, const void *p, size_t len);
u64 crc64_rocksoft(const unsigned char *buffer, size_t len);
u64 crc64_rocksoft_update(u64 crc, const unsigned char *buffer, size_t len);
#endif /* _LINUX_CRC64_H */