]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[digest] Add "--set" option to store digest value in a setting
authorMichael Brown <mcb30@ipxe.org>
Wed, 6 Aug 2025 13:07:00 +0000 (14:07 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 6 Aug 2025 13:07:00 +0000 (14:07 +0100)
commit6fa901530afdd1c7d28f0328ead8d7825fa62fbd
treee6b0aa3e2a7d7ce5a367ead78082cbce3ed55d8b
parentf5467d69dbdd83586e152c63c45e113a0005c1f9
[digest] Add "--set" option to store digest value in a setting

Allow the result of a digest calculation to be stored in a named
setting.  This allows for digest verification in scripts using e.g.:

  set expected:hexraw cb05def203386f2b33685d177d9f04e3e3d70dd4
  sha1sum --set actual 1mb
  iseq ${expected} ${actual} || goto checksum_bad

Note that digest verification alone cannot be used to set the trusted
execution status of an image.  The only way to mark an image as
trusted is to use the "imgverify" command.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/hci/commands/digest_cmd.c