dcerpc-nt: add UNION_ALIGN_TO... helpers
[wireshark-sm.git] / wsutil / adler32.h
blob9ff7c649201a9e3e8f9d2ecebeccbe60dae0fc72
1 /** @file
2 * Compute the Adler32 checksum (RFC 1950)
3 * 2003 Tomas Kukosa
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
12 #ifndef ADLER32_H
13 #define ADLER32_H
15 #include <wireshark.h>
17 #ifdef __cplusplus
18 extern "C"{
19 #endif
21 WS_DLL_PUBLIC uint32_t update_adler32(uint32_t adler, const uint8_t *buf, size_t len);
22 WS_DLL_PUBLIC uint32_t adler32_bytes(const uint8_t *buf, size_t len);
23 WS_DLL_PUBLIC uint32_t adler32_str(const char *buf);
25 #ifdef __cplusplus
27 #endif
29 #endif /* ADLER32_H */