]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[digest] Add commands for all enabled digest algorithms
authorMichael Brown <mcb30@ipxe.org>
Wed, 6 Aug 2025 12:05:26 +0000 (13:05 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 6 Aug 2025 12:17:25 +0000 (13:17 +0100)
commitf45782f9f3d281b8ab7cd171929d7cfdf482de99
tree4227d295d46c56772f111dd9c6094a16d0161c2f
parent2e4e1f7e9e474f6555009238304780448d3ea238
[digest] Add commands for all enabled digest algorithms

Add "sha256sum", "sha512sum", and similar commands.  Include these new
commands only when DIGEST_CMD is enabled in config/general.h and the
corresponding algorithm is enabled in config/crypto.h.

Leave "mdsum" and "sha1sum" included whenever only DIGEST_CMD is
enabled, to avoid potentially breaking backwards compatibility with
builds that disabled MD5 or SHA-1 as a TLS or X.509 digest algorithm,
but would still have expected those commands to be present.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/config/config_digest_cmd.c [new file with mode: 0644]
src/crypto/mishmash/cmd_md4.c [new file with mode: 0644]
src/crypto/mishmash/cmd_sha224.c [new file with mode: 0644]
src/crypto/mishmash/cmd_sha256.c [new file with mode: 0644]
src/crypto/mishmash/cmd_sha384.c [new file with mode: 0644]
src/crypto/mishmash/cmd_sha512.c [new file with mode: 0644]
src/hci/commands/digest_cmd.c
src/include/hci/digest_cmd.h [new file with mode: 0644]