linux/lib/crc-itu-t.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 *      crc-itu-t.c
 */

#include <linux/types.h>
#include <linux/module.h>
#include <linux/crc-itu-t.h>

/* CRC table for the CRC ITU-T V.41 0x1021 (x^16 + x^12 + x^5 + 1) */
const u16 crc_itu_t_table[256] =;

EXPORT_SYMBOL();

/**
 * crc_itu_t - Compute the CRC-ITU-T for the data buffer
 *
 * @crc:     previous CRC value
 * @buffer:  data pointer
 * @len:     number of bytes in the buffer
 *
 * Returns the updated CRC value
 */
u16 crc_itu_t(u16 crc, const u8 *buffer, size_t len)
{}
EXPORT_SYMBOL();

MODULE_DESCRIPTION();
MODULE_LICENSE();