Rizin
unix-like reverse engineering framework and cli tools
mod255.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_MOD255_H
5 #define RZ_MOD255_H
6 
7 #include <rz_types.h>
8 
9 #define RZ_HASH_MOD255_DIGEST_SIZE 4
10 #define RZ_HASH_MOD255_BLOCK_LENGTH 0
11 
12 typedef ut32 RzMod255;
13 
15 bool rz_mod255_update(RzMod255 *ctx, const ut8 *data, size_t len);
16 bool rz_mod255_final(ut8 *digest, RzMod255 *ctx);
17 
18 #endif /* RZ_MOD255_H */
size_t len
Definition: 6502dis.c:15
uint32_t ut32
uint8_t ut8
Definition: lh5801.h:11
bool rz_mod255_update(RzMod255 *ctx, const ut8 *data, size_t len)
Definition: mod255.c:13
bool rz_mod255_init(RzMod255 *ctx)
Definition: mod255.c:7
ut32 RzMod255
Definition: mod255.h:12
bool rz_mod255_final(ut8 *digest, RzMod255 *ctx)
Definition: mod255.c:23