edit README file to show new command line option

edit eltt2.c to show new option in help menu
This commit is contained in:
thomas
2017-04-16 21:16:42 +02:00
parent 785d85fbc1
commit 758a41f16d
2 changed files with 8 additions and 3 deletions

View File

@@ -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>

View File

@@ -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");