Improve help message for Get Random

The previous help message for Get Random indicated that the user can enter a value of 32 for 0x32 (=50 bytes) .
However the maximum supported number of bytes is 0x20 = 32 bytes.
This patch improves the help message to reflect this maximum.
Reported by @zveriu in issue #11.
Signed-off-by: Peter Huewe <peter.huewe@infineon.com>
This commit is contained in:
Peter Huewe
2018-05-08 10:32:32 +02:00
committed by GitHub
parent db61889621
commit ec518c5e04

View File

@@ -733,7 +733,7 @@ static void print_help()
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(" -> Enter desired number of random bytes in hex like '20' for 0x20 (=32 bytes, maximum)\n");
printf("'-h': Help\n");
printf("'-r <PCR index>': PCR Read SHA-1\n");
printf(" -> PCR index: Enter PCR number in hex like '17' for 0x17\n");