summaryrefslogtreecommitdiff
path: root/src/common/entropy.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2024-11-24 07:16:43 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2024-11-24 07:16:43 (GMT)
commit31c235f145189fe146f9374d6826927de5964a07 (patch)
treef2e7f0f782845faad6de9bc56f4d8aa5af42adae /src/common/entropy.h
parent6a26f36c928ed604f5cc7d6aa04e51a1469cf57c (diff)
Include entropy (expressed in bits or bytes) into the Python API.
Diffstat (limited to 'src/common/entropy.h')
-rw-r--r--src/common/entropy.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/entropy.h b/src/common/entropy.h
index f747149..b677a77 100644
--- a/src/common/entropy.h
+++ b/src/common/entropy.h
@@ -25,12 +25,15 @@
#define _COMMON_ENTROPY_H
+#include <stdbool.h>
+
+
#include "../arch/archbase.h"
/* Détermine l'entropie d'un contenu binaire. */
-double compute_entropy(const bin_t *, size_t);
+double compute_entropy(const bin_t *, size_t, bool);