public class TPMS_CONTEXT extends TpmStructure
| Modifier and Type | Field and Description |
|---|---|
TPMS_CONTEXT_DATA |
contextBlob
the context data and integrity HMAC
|
TPM_HANDLE |
hierarchy
the hierarchy of the context
|
TPM_HANDLE |
savedHandle
a handle indicating if the context is a session, object, or sequence object See Table 212 Context Handle Values
|
long |
sequence
the sequence number of the context NOTE Transient object contexts and session contexts used different counters.
|
| Constructor and Description |
|---|
TPMS_CONTEXT()
This structure is used in TPM2_ContextLoad() and TPM2_ContextSave().
|
TPMS_CONTEXT(long _sequence,
TPM_HANDLE _savedHandle,
TPM_HANDLE _hierarchy,
TPMS_CONTEXT_DATA _contextBlob)
This structure is used in TPM2_ContextLoad() and TPM2_ContextSave().
|
| Modifier and Type | Method and Description |
|---|---|
static TPMS_CONTEXT |
fromTpm(byte[] x) |
static TPMS_CONTEXT |
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 sequence
public TPM_HANDLE savedHandle
public TPM_HANDLE hierarchy
public TPMS_CONTEXT_DATA contextBlob
public TPMS_CONTEXT(long _sequence,
TPM_HANDLE _savedHandle,
TPM_HANDLE _hierarchy,
TPMS_CONTEXT_DATA _contextBlob)
_sequence - the sequence number of the context NOTE Transient object contexts and session contexts used different counters._savedHandle - a handle indicating if the context is a session, object, or sequence object See Table 212 Context Handle Values_hierarchy - the hierarchy of the context_contextBlob - the context data and integrity HMACpublic TPMS_CONTEXT()
public void toTpm(OutByteBuf buf)
TpmMarshallerbuf - An output byte bufferpublic void initFromTpm(InByteBuf buf)
TpmMarshallerbuf - An input byte bufferpublic byte[] toTpm()
TpmMarshallerpublic static TPMS_CONTEXT fromTpm(byte[] x)
public static TPMS_CONTEXT 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.