1 /* crc.h
2  * header file of crc.c
3  *
4  * Copyright (c) 2007 by Intel Corporation.
5  *
6  * Author: Mike Harvey <michael.harvey@intel.com>
7  *
8  * Wireshark - Network traffic analyzer
9  * By Gerald Combs <gerald@wireshark.org>
10  * Copyright 1999 Gerald Combs
11  *
12  * SPDX-License-Identifier: GPL-2.0-or-later
13  */
14 
15 #ifndef CRC_H
16 #define CRC_H
17 
18 #include <glib.h>
19 
20 /* use lookup tables to compute CRC values */
21 #ifdef STATIC_DATA
22 extern guint8  crc8_table[];
23 extern guint32 crc32_table[];
24 #else
25 void wimax_mac_gen_crc32_table(void);
26 void wimax_mac_gen_crc8_table(void);
27 #endif
28 
29 guint32 wimax_mac_calc_crc32(const guint8 *data, guint data_len);
30 guint16 wimax_mac_calc_crc16(const guint8 *data, guint data_len);
31 guint8 wimax_mac_calc_crc8(const guint8 *data, guint data_len);
32 
33 #endif /* CRC_H */
34