diff --git a/README.md b/README.md index bf7a8a1..62142ee 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,8 @@ To get the TPM into the required state, call ELTT2 with the corresponding comman -d \ | Shutdown | \[u\] -e \ \ | PCR Extend SHA-1 | \[u\] -E \ \ | PCR Extend SHA-256 | \[u\] - -g | Get Capability 'TPM Properties'| \[u\] + -g | Get fixed capability values | \[u\] + -v | Get variable capability values | \[u\] -G \ | Get Random | \[u\] -h | Help | \[-\] -r \ | PCR Read SHA-1 | \[u\] @@ -111,7 +112,10 @@ With the "-E" command you can extend bytes in the selected PCR with SHA-256. To ./eltt2 -E 17 41624364 -g:
-With the "-g" command you can read the TPM's properties. +With the "-g" command you can read the TPM's fixed properties. + +-v:
+With the "-v" command you can read the TPM's variable properties. -G:
With the "-G" command you can get a given amount of random bytes. Note that you can only request a maximum amount of 32 random bytes at once. For example, use the following command to get 20 (0x14) random bytes:
diff --git a/eltt2.c b/eltt2.c index f0238f5..7ca1873 100644 --- a/eltt2.c +++ b/eltt2.c @@ -674,7 +674,8 @@ void print_help() printf("'-E ': PCR Extend SHA256\n"); printf(" -> PCR index: Enter the PCR index in hex like '17' for 0x17\n"); printf(" PCR digest: Enter the value to extend the PCR with in hex like '0f56...' for {0x0f, 0x56, ...}\n"); - printf("'-g': Get Capability\n"); + printf("'-g': Get fixed capability values\n"); + printf("'-v': Get variable capability values\n"); printf("'-G ': Get Random\n"); printf(" -> Enter desired number of random bytes in hex like '32' for 0x32\n"); printf("'-h': Help\n");