Rizin
unix-like reverse engineering framework and cli tools
adler32.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2021 deroad <wargio@libero.it>
2 // SPDX-License-Identifier: LGPL-3.0-only
3 
4 #ifndef RZ_ADLER32_H
5 #define RZ_ADLER32_H
6 
7 #include <rz_types.h>
8 
9 #define RZ_HASH_ADLER32_DIGEST_SIZE 4
10 #define RZ_HASH_ADLER32_BLOCK_LENGTH 0
11 
12 typedef struct adler32_t {
15 
17 bool rz_adler32_update(RzAdler32 *ctx, const ut8 *data, size_t len);
18 bool rz_adler32_final(ut8 *digest, RzAdler32 *ctx);
19 
20 #endif /* RZ_ADLER32_H */
size_t len
Definition: 6502dis.c:15
bool rz_adler32_init(RzAdler32 *ctx)
Definition: adler32.c:7
bool rz_adler32_update(RzAdler32 *ctx, const ut8 *data, size_t len)
Definition: adler32.c:14
bool rz_adler32_final(ut8 *digest, RzAdler32 *ctx)
Definition: adler32.c:23
struct adler32_t RzAdler32
uint32_t ut32
uint8_t ut8
Definition: lh5801.h:11
ut32 low
Definition: adler32.h:13
ut32 high
Definition: adler32.h:13