diff options
Diffstat (limited to 'commands/hashsum.c')
-rw-r--r-- | commands/hashsum.c | 34 |
1 files changed, 10 insertions, 24 deletions
diff --git a/commands/hashsum.c b/commands/hashsum.c index 70aab2c4bf..308faa172a 100644 --- a/commands/hashsum.c +++ b/commands/hashsum.c @@ -1,21 +1,7 @@ -/* - * digest.c - Calculate a md5/sha1/sha256 checksum of a memory area - * - * Copyright (c) 2011 Peter Korsgaard <jacmet@sunsite.dk> - * - * See file CREDITS for list of people who contributed to this - * project. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - */ +// SPDX-License-Identifier: GPL-2.0-only +// SPDX-FileCopyrightText: © 2011 Peter Korsgaard <jacmet@sunsite.dk> + +/* digest.c - Calculate a md5/sha1/sha256 checksum of a memory area */ #include <common.h> #include <command.h> @@ -88,7 +74,7 @@ BAREBOX_CMD_START(md5sum) BAREBOX_CMD_HELP(cmd_md5sum_help) BAREBOX_CMD_END -#endif /* CMD_CMD_MD5SUM */ +#endif /* CONFIG_CMD_MD5SUM */ #ifdef CONFIG_CMD_SHA1SUM @@ -109,7 +95,7 @@ BAREBOX_CMD_START(sha1sum) BAREBOX_CMD_HELP(cmd_sha1sum_help) BAREBOX_CMD_END -#endif /* CMD_CMD_SHA1SUM */ +#endif /* CONFIG_CMD_SHA1SUM */ #ifdef CONFIG_CMD_SHA224SUM @@ -130,7 +116,7 @@ BAREBOX_CMD_START(sha224sum) BAREBOX_CMD_HELP(cmd_sha224sum_help) BAREBOX_CMD_END -#endif /* CMD_CMD_SHA224SUM */ +#endif /* CONFIG_CMD_SHA224SUM */ #ifdef CONFIG_CMD_SHA256SUM @@ -151,7 +137,7 @@ BAREBOX_CMD_START(sha256sum) BAREBOX_CMD_HELP(cmd_sha256sum_help) BAREBOX_CMD_END -#endif /* CMD_CMD_SHA256SUM */ +#endif /* CONFIG_CMD_SHA256SUM */ #ifdef CONFIG_CMD_SHA384SUM @@ -172,7 +158,7 @@ BAREBOX_CMD_START(sha384sum) BAREBOX_CMD_HELP(cmd_sha384sum_help) BAREBOX_CMD_END -#endif /* CMD_CMD_SHA384SUM */ +#endif /* CONFIG_CMD_SHA384SUM */ #ifdef CONFIG_CMD_SHA512SUM @@ -193,4 +179,4 @@ BAREBOX_CMD_START(sha512sum) BAREBOX_CMD_HELP(cmd_sha512sum_help) BAREBOX_CMD_END -#endif /* CMD_CMD_SHA512SUM */ +#endif /* CONFIG_CMD_SHA512SUM */ |