cmd: md5sum: use hash_command

Drop old implementation and use hash_command() instead, as
how it's currently done for crc32 and sha1sum cmds.

Test:
=> md5sum 0x60000000 0x200
md5 for 60000000 ... 600001ff ==> e6bbbe95f5b41996f4a9b9af7bbd4050

Signed-off-by: Igor Opaniuk <igor.opaniuk@gmail.com>
This commit is contained in:
Igor Opaniuk
2024-03-02 16:05:48 +01:00
committed by Tom Rini
parent 606867c849
commit 6ec3f92089
3 changed files with 16 additions and 143 deletions

View File

@@ -826,6 +826,7 @@ config LOOPW
config CMD_MD5SUM
bool "md5sum"
select MD5
select HASH
help
Compute MD5 checksum.