From 93eeb1f53b6f4a46acc90101b6df2f8f0d53f37d Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 6 Nov 2022 02:41:51 +0200 Subject: [PATCH] Show MD5 and Length --- Library/dumper.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Library/dumper.cpp b/Library/dumper.cpp index 1d687e9..73313c7 100644 --- a/Library/dumper.cpp +++ b/Library/dumper.cpp @@ -3,6 +3,7 @@ #include #include #include +#include NewLock(DumperLock); @@ -62,4 +63,10 @@ void DumpData(const char *Description, void *Address, unsigned long Length) WriteRaw(" %s\n", Buffer); WriteRaw("-------------------------------------------------------------------------\n"); + WriteRaw("Length: %ld bytes", Length); + uint8_t *result = md5File(AddressChar, Length); + WriteRaw("MD5: "); + for (int i = 0; i < 16; i++) + WriteRaw("%02x", result[i]); + WriteRaw("\n-------------------------------------------------------------------------\n"); }