mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-29 15:57:59 +00:00
Show MD5 and Length
This commit is contained in:
parent
28a1428cf3
commit
93eeb1f53b
@ -3,6 +3,7 @@
|
|||||||
#include <printf.h>
|
#include <printf.h>
|
||||||
#include <uart.hpp>
|
#include <uart.hpp>
|
||||||
#include <lock.hpp>
|
#include <lock.hpp>
|
||||||
|
#include <md5.h>
|
||||||
|
|
||||||
NewLock(DumperLock);
|
NewLock(DumperLock);
|
||||||
|
|
||||||
@ -62,4 +63,10 @@ void DumpData(const char *Description, void *Address, unsigned long Length)
|
|||||||
|
|
||||||
WriteRaw(" %s\n", Buffer);
|
WriteRaw(" %s\n", Buffer);
|
||||||
WriteRaw("-------------------------------------------------------------------------\n");
|
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");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user