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
{
13
ut32
low
,
high
;
14
}
RzAdler32
;
15
16
bool
rz_adler32_init
(
RzAdler32
*
ctx
);
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 */
len
size_t len
Definition:
6502dis.c:15
rz_adler32_init
bool rz_adler32_init(RzAdler32 *ctx)
Definition:
adler32.c:7
rz_adler32_update
bool rz_adler32_update(RzAdler32 *ctx, const ut8 *data, size_t len)
Definition:
adler32.c:14
rz_adler32_final
bool rz_adler32_final(ut8 *digest, RzAdler32 *ctx)
Definition:
adler32.c:23
RzAdler32
struct adler32_t RzAdler32
ut32
uint32_t ut32
Definition:
demangler_util.h:31
ut8
uint8_t ut8
Definition:
lh5801.h:11
rz_types.h
adler32_t
Definition:
adler32.h:12
adler32_t::low
ut32 low
Definition:
adler32.h:13
adler32_t::high
ut32 high
Definition:
adler32.h:13
ctx
Definition:
zip_algorithm_bzip2.c:40
librz
hash
algorithms
adler32
adler32.h
Generated by
1.9.1