public class TPMS_CLOCK_INFO extends TpmStructure
| Modifier and Type | Field and Description |
|---|---|
long |
clock
time value in milliseconds that advances while the TPM is powered NOTE The interpretation of the time-origin (clock=0) is out of the scope of this specification, although Coordinated Universal Time (UTC) is expected to be a common convention.
|
int |
resetCount
number of occurrences of TPM Reset since the last TPM2_Clear()
|
int |
restartCount
number of times that TPM2_Shutdown() or _TPM_Hash_Start have occurred since the last TPM Reset or TPM2_Clear().
|
byte |
safe
no value of Clock greater than the current value of Clock has been previously reported by the TPM.
|
| Constructor and Description |
|---|
TPMS_CLOCK_INFO()
This structure is used in each of the attestation commands.
|
TPMS_CLOCK_INFO(long _clock,
int _resetCount,
int _restartCount,
byte _safe)
This structure is used in each of the attestation commands.
|
| Modifier and Type | Method and Description |
|---|---|
static TPMS_CLOCK_INFO |
fromTpm(byte[] x) |
static TPMS_CLOCK_INFO |
fromTpm(InByteBuf buf) |
void |
initFromTpm(InByteBuf buf)
Populate this object from the TPM representation in the input byte buffer object
|
String |
toString() |
void |
toStringInternal(TpmStructurePrinter _p,
int d)
Serialize this object to the structure printer
|
byte[] |
toTpm()
Convert this object to its TPM representation and return it as a byte array
|
void |
toTpm(OutByteBuf buf)
Convert this object to its TPM representation and store in the output byte buffer object
|
equals, hashCodepublic long clock
public int resetCount
public int restartCount
public byte safe
public TPMS_CLOCK_INFO(long _clock,
int _resetCount,
int _restartCount,
byte _safe)
_clock - time value in milliseconds that advances while the TPM is powered NOTE The interpretation of the time-origin (clock=0) is out of the scope of this specification, although Coordinated Universal Time (UTC) is expected to be a common convention. This structure element is used to report on the TPM's Clock value. The value of Clock shall be recorded in non-volatile memory no less often than once per 222 milliseconds (~69.9 minutes) of TPM operation. The reference for the millisecond timer is the TPM oscillator. This value is reset to zero when the Storage Primary Seed is changed (TPM2_Clear()). This value may be advanced by TPM2_ClockSet()._resetCount - number of occurrences of TPM Reset since the last TPM2_Clear()_restartCount - number of times that TPM2_Shutdown() or _TPM_Hash_Start have occurred since the last TPM Reset or TPM2_Clear()._safe - no value of Clock greater than the current value of Clock has been previously reported by the TPM. Set to YES on TPM2_Clear().public TPMS_CLOCK_INFO()
public void toTpm(OutByteBuf buf)
TpmMarshallerbuf - An output byte bufferpublic void initFromTpm(InByteBuf buf)
TpmMarshallerbuf - An input byte bufferpublic byte[] toTpm()
TpmMarshallerpublic static TPMS_CLOCK_INFO fromTpm(byte[] x)
public static TPMS_CLOCK_INFO fromTpm(InByteBuf buf)
public void toStringInternal(TpmStructurePrinter _p, int d)
TpmStructuretoStringInternal in class TpmStructure_p - The structure accumulatord - The data to serializeCopyright © 2017. All rights reserved.