2003-08-21 18:00:22 +00:00
|
|
|
/* adler32.h
|
|
|
|
* Compute the Adler32 checksum (RFC 1950)
|
|
|
|
* 2003 Tomas Kukosa
|
|
|
|
*
|
2006-05-21 05:12:17 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2003-08-21 18:00:22 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
2018-02-07 11:26:45 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
2003-08-21 18:00:22 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef ADLER32_H
|
|
|
|
#define ADLER32_H
|
|
|
|
|
2013-11-09 14:19:19 +00:00
|
|
|
#include "ws_symbol_export.h"
|
|
|
|
|
2003-08-21 18:00:22 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"{
|
|
|
|
#endif
|
|
|
|
|
2013-11-09 14:19:19 +00:00
|
|
|
WS_DLL_PUBLIC guint32 update_adler32(guint32 adler, const guint8 *buf, size_t len);
|
|
|
|
WS_DLL_PUBLIC guint32 adler32_bytes(const guint8 *buf, size_t len);
|
|
|
|
WS_DLL_PUBLIC guint32 adler32_str(const char *buf);
|
2003-08-21 18:00:22 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* ADLER32_H */
|
|
|
|
|