| // SPDX-License-Identifier: GPL-2.0+ |
| * Joe Hershberger, National Instruments, joe.hershberger@ni.com |
| * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| static int do_md5sum(struct cmd_tbl *cmdtp, int flag, int argc, |
| int flags = HASH_FLAG_ENV; |
| if (IS_ENABLED(CONFIG_MD5SUM_VERIFY) && strcmp(*av, "-v") == 0) { |
| flags |= HASH_FLAG_VERIFY; |
| return hash_command("md5", flags, cmdtp, flag, ac, av); |
| #if IS_ENABLED(CONFIG_MD5SUM_VERIFY) |
| "compute MD5 message digest", |
| "address count [[*]sum]\n" |
| " - compute MD5 message digest [save to sum]\n" |
| "md5sum -v address count [*]sum\n" |
| " - verify md5sum of memory area" |
| "compute MD5 message digest", |
| "address count [[*]sum]\n" |
| " - compute MD5 message digest [save to sum]" |
| #endif /* IS_ENABLED(CONFIG_MD5SUM_VERIFY) */ |