summaryrefslogtreecommitdiffstats
path: root/utils/nwztools/upgtools/mg.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/nwztools/upgtools/mg.h')
-rw-r--r--utils/nwztools/upgtools/mg.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/nwztools/upgtools/mg.h b/utils/nwztools/upgtools/mg.h
index fe6ec7c2f6..3f7de2cd9b 100644
--- a/utils/nwztools/upgtools/mg.h
+++ b/utils/nwztools/upgtools/mg.h
@@ -22,10 +22,15 @@
#define __mg_h__
#include <stdint.h>
+#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
+
+/* Compute the MD5 digest of a buffer */
+void MD5_CalculateDigest(void *digest, const void *input, size_t length);
+
/* size must be a multiple of 8, this function is thread-safe */
void mg_decrypt_fw(void *in, int size, void *out, uint8_t key[8]);