mirror of
https://github.com/Infineon/eltt2.git
synced 2026-01-11 15:10:45 +00:00
edit README file to show new command line option
edit eltt2.c to show new option in help menu
This commit is contained in:
@@ -65,7 +65,8 @@ To get the TPM into the required state, call ELTT2 with the corresponding comman
|
||||
-d \<shutdown type\> | Shutdown | \[u\]
|
||||
-e \<PCR index\> \<PCR digest\> | PCR Extend SHA-1 | \[u\]
|
||||
-E \<PCR index\> \<PCR digest\> | PCR Extend SHA-256 | \[u\]
|
||||
-g | Get Capability 'TPM Properties'| \[u\]
|
||||
-g | Get fixed capability values | \[u\]
|
||||
-v | Get variable capability values | \[u\]
|
||||
-G \<data length\> | Get Random | \[u\]
|
||||
-h | Help | \[-\]
|
||||
-r \<PCR index\> | 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: <br>
|
||||
With the "-g" command you can read the TPM's properties.
|
||||
With the "-g" command you can read the TPM's fixed properties.
|
||||
|
||||
-v: <br>
|
||||
With the "-v" command you can read the TPM's variable properties.
|
||||
|
||||
-G: <br>
|
||||
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: <br>
|
||||
|
||||
3
eltt2.c
3
eltt2.c
@@ -674,7 +674,8 @@ void print_help()
|
||||
printf("'-E <PCR index> <PCR digest>': 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 <byte count>': Get Random\n");
|
||||
printf(" -> Enter desired number of random bytes in hex like '32' for 0x32\n");
|
||||
printf("'-h': Help\n");
|
||||
|
||||
Reference in New Issue
Block a user