public class CreatePrimaryResponse extends TpmStructure
| Modifier and Type | Field and Description |
|---|---|
TPMS_CREATION_DATA |
creationData
contains a TPMT_CREATION_DATA
|
byte[] |
creationHash
digest of creationData using nameAlg of outPublic
|
TPMT_TK_CREATION |
creationTicket
ticket used by TPM2_CertifyCreation() to validate that the creation data was produced by the TPM
|
TPM_HANDLE |
handle
handle of type TPM_HT_TRANSIENT for created Primary Object
|
byte[] |
name
the name of the created object
|
TPMT_PUBLIC |
outPublic
the public portion of the created object
|
| Constructor and Description |
|---|
CreatePrimaryResponse()
This command is used to create a Primary Object under one of the Primary Seeds or a Temporary Object under TPM_RH_NULL.
|
CreatePrimaryResponse(TPM_HANDLE _handle,
TPMT_PUBLIC _outPublic,
TPMS_CREATION_DATA _creationData,
byte[] _creationHash,
TPMT_TK_CREATION _creationTicket,
byte[] _name)
This command is used to create a Primary Object under one of the Primary Seeds or a Temporary Object under TPM_RH_NULL.
|
| Modifier and Type | Method and Description |
|---|---|
static CreatePrimaryResponse |
fromTpm(byte[] x) |
static CreatePrimaryResponse |
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 TPM_HANDLE handle
public TPMT_PUBLIC outPublic
public TPMS_CREATION_DATA creationData
public byte[] creationHash
public TPMT_TK_CREATION creationTicket
public byte[] name
public CreatePrimaryResponse(TPM_HANDLE _handle, TPMT_PUBLIC _outPublic, TPMS_CREATION_DATA _creationData, byte[] _creationHash, TPMT_TK_CREATION _creationTicket, byte[] _name)
_handle - handle of type TPM_HT_TRANSIENT for created Primary Object_outPublic - the public portion of the created object_creationData - contains a TPMT_CREATION_DATA_creationHash - digest of creationData using nameAlg of outPublic_creationTicket - ticket used by TPM2_CertifyCreation() to validate that the creation data was produced by the TPM_name - the name of the created objectpublic CreatePrimaryResponse()
public void toTpm(OutByteBuf buf)
TpmMarshallerbuf - An output byte bufferpublic void initFromTpm(InByteBuf buf)
TpmMarshallerbuf - An input byte bufferpublic byte[] toTpm()
TpmMarshallerpublic static CreatePrimaryResponse fromTpm(byte[] x)
public static CreatePrimaryResponse 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.