lcp2_mlehash(8)

lcp2_mlehash8

Generate a hash of a txt mle binary file and print it to stdout as text.

Usage

lcp2_mlehash [--create] [--cmdline cmdline] [--alg hashalg] [--help] [--verbose] mle-file

Overview

lcp2_mlehash is used to generate a hash of the portion of an executable file that contains the Intel(R) TXT measured launched environment (MLE). In the MLE binary file, the portion of the file to be used as the MLE is specified in the MLE header structure. If verbose mode is not used, the output is suitable for use as the mle-file to the lcp2_crtpolelt command.

Options

mle-file

File name of the MLE binary. If it is a gzip file then it will be un-ziped before hashing.

--create

Create a hash.

--cmdline cmdline

Specify quote-delimited command line. It is important to specify the command line that is used when launching the MLE or the hash will not match what is calculated by SINIT.

--alg hashalg

Specify the hash algorithm to use. Supported values are sha1, sha256, sha384 and sha512.

--help

Print out the help message.

--verbose

Verbose mode, display progress indications.

Examples

lcp2_mlehash --create --cmdline "logging=memory,serial,vga" --alg sha1 /boot/tboot.gz > mle-hash

Releases

Unchanged in 3 releases since Debian 11 (Bullseye).

  1. 11–13

From tboot 1.10.5-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.