mirror of https://github.com/wolfSSL/wolfTPM.git
Add print for TPM uptime since last power-up and modify message for TPM clock
Signed-off-by: Dimitar Tomov <dimi@designfirst.ee>pull/103/head
parent
e4e29faef6
commit
1a88cbad56
|
@ -221,7 +221,10 @@ int TPM2_Timestamp_Test(void* userCtx)
|
|||
|
||||
printf("TPM with signature attests (type 0x%x):\n", attestedData.type);
|
||||
/* time value in milliseconds that advances while the TPM is powered */
|
||||
printf("\tUptime (in ms) since power-up: %lu\n",
|
||||
printf("\tTPM uptime since last power-up(in ms): %lu\n",
|
||||
(unsigned long)attestedData.attested.time.time.time);
|
||||
/* time value in milliseconds that advances while the TPM is powered */
|
||||
printf("\tTPM clock, total time the TPM has been on(in ms): %lu\n",
|
||||
(unsigned long)attestedData.attested.time.time.clockInfo.clock);
|
||||
/* number of occurrences of TPM Reset since the last TPM2_Clear() */
|
||||
printf("\tReset Count: %u\n",
|
||||
|
@ -233,7 +236,7 @@ int TPM2_Timestamp_Test(void* userCtx)
|
|||
printf("\tClock Safe: %u\n",
|
||||
attestedData.attested.time.time.clockInfo.safe);
|
||||
/* a TPM vendor-specific value indicating the version number of the firmware */
|
||||
printf("\tFirmware Version: %lu\n",
|
||||
printf("\tFirmware Version(vendor specific): 0x%lX\n",
|
||||
(unsigned long)attestedData.attested.time.firmwareVersion);
|
||||
|
||||
exit:
|
||||
|
|
Loading…
Reference in New Issue