Rizin
unix-like reverse engineering framework and cli tools
entropy.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_ENTROPY_H
5 #define RZ_ENTROPY_H
6 
7 #include <rz_types.h>
8 
9 #define RZ_HASH_ENTROPY_DIGEST_SIZE sizeof(double)
10 #define RZ_HASH_ENTROPY_BLOCK_LENGTH 0
11 
12 typedef struct entropy_t {
13  ut64 count[256];
16 
18 bool rz_entropy_update(RzEntropy *ctx, const ut8 *data, size_t len);
19 bool rz_entropy_final(ut8 *digest, RzEntropy *ctx, bool fraction);
20 
21 #endif /* RZ_ENTROPY_H */
size_t len
Definition: 6502dis.c:15
bool rz_entropy_init(RzEntropy *ctx)
Definition: entropy.c:9
bool rz_entropy_final(ut8 *digest, RzEntropy *ctx, bool fraction)
Definition: entropy.c:24
struct entropy_t RzEntropy
bool rz_entropy_update(RzEntropy *ctx, const ut8 *data, size_t len)
Definition: entropy.c:15
uint8_t ut8
Definition: lh5801.h:11
ut64 size
Definition: entropy.h:14
ut64 count[256]
Definition: entropy.h:13
ut64(WINAPI *w32_GetEnabledXStateFeatures)()