Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / plugins / epan / wimax / crc.h
blobeaf2f6f47f25dd84e0b239961565400d863ca895
1 /* crc.h
2 * header file of crc.c
4 * Copyright (c) 2007 by Intel Corporation.
6 * Author: Mike Harvey <michael.harvey@intel.com>
8 * Wireshark - Network traffic analyzer
9 * By Gerald Combs <gerald@wireshark.org>
10 * Copyright 1999 Gerald Combs
12 * SPDX-License-Identifier: GPL-2.0-or-later
15 #ifndef CRC_H
16 #define CRC_H
18 #include <glib.h>
19 #include <stdint.h>
21 /* use lookup tables to compute CRC values */
22 #ifdef STATIC_DATA
23 extern uint8_t crc8_table[];
24 extern uint32_t crc32_table[];
25 #else
26 void wimax_mac_gen_crc32_table(void);
27 void wimax_mac_gen_crc8_table(void);
28 #endif
30 uint32_t wimax_mac_calc_crc32(const uint8_t *data, unsigned data_len);
31 uint16_t wimax_mac_calc_crc16(const uint8_t *data, unsigned data_len);
32 uint8_t wimax_mac_calc_crc8(const uint8_t *data, unsigned data_len);
34 #endif /* CRC_H */