Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
crc8.h
1 /* crc8.h
2  * Declaration of CRC-8 routine and tables
3  *
4  * 2011 Roland Knall <rknall@gmail.com>
5  *
6  * Wireshark - Network traffic analyzer
7  * By Gerald Combs <gerald@wireshark.org>
8  * Copyright 1998 Gerald Combs
9  *
10  * SPDX-License-Identifier: GPL-2.0-or-later
11  */
12 
13 #ifndef __CRC8_H__
14 #define __CRC8_H__
15 
16 
17 #include "ws_symbol_export.h"
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif /* __cplusplus */
22 
30 WS_DLL_PUBLIC guint8 crc8_0x2F(const guint8 *buf, guint32 len, guint8 seed);
31 
39 WS_DLL_PUBLIC guint8 crc8_0x37(const guint8 *buf, guint32 len, guint8 seed);
40 
48 WS_DLL_PUBLIC guint8 crc8_0x3B(const guint8 *buf, guint32 len, guint8 seed);
49 
50 #ifdef __cplusplus
51 }
52 #endif /* __cplusplus */
53 
54 #endif /* crc8.h */