| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
adler32.h
Go to the documentation of this file.
1
12#ifndef ADLER32_H
13#define ADLER32_H
14
15#include <wireshark.h>
16
17#ifdef __cplusplus
18extern "C"{
19#endif
20
32WS_DLL_PUBLIC uint32_t update_adler32(uint32_t adler, const uint8_t *buf, size_t len);
33
43WS_DLL_PUBLIC uint32_t adler32_bytes(const uint8_t *buf, size_t len);
44
53WS_DLL_PUBLIC uint32_t adler32_str(const char *buf);
54
55#ifdef __cplusplus
56}
57#endif
58
59#endif /* ADLER32_H */
60
adler32_bytes
WS_DLL_PUBLIC uint32_t adler32_bytes(const uint8_t *buf, size_t len)
Computes the Adler-32 checksum of a byte array.
Definition adler32.c:39
adler32_str
WS_DLL_PUBLIC uint32_t adler32_str(const char *buf)
Computes the Adler-32 checksum of a C string.
Definition adler32.c:45
update_adler32
WS_DLL_PUBLIC uint32_t update_adler32(uint32_t adler, const uint8_t *buf, size_t len)
Updates an existing Adler-32 checksum with new data.
Definition adler32.c:21