Package tss.tpm
Class TPMS_CREATION_DATA
- java.lang.Object
-
- tss.TpmStructure
-
- tss.tpm.TPMS_CREATION_DATA
-
- All Implemented Interfaces:
TpmMarshaller
public class TPMS_CREATION_DATA extends TpmStructure
This structure provides information relating to the creation environment for the object. The creation data includes the parent Name, parent Qualified Name, and the digest of selected PCR. These values represent the environment in which the object was created. Creation data allows a relying party to determine if an object was created when some appropriate protections were present.
-
-
Field Summary
Fields Modifier and Type Field Description TPMA_LOCALITY
locality
The locality at which the object was createdbyte[]
outsideInfo
Association with additional information added by the key creator This will be the contents of the outsideInfo parameter in TPM2_Create() or TPM2_CreatePrimary().byte[]
parentName
Name of the parent at time of creation The size will match digest size associated with parentNameAlg unless it is TPM_ALG_NULL, in which case the size will be 4 and parentName will be the hierarchy handle.TPM_ALG_ID
parentNameAlg
NameAlg of the parentbyte[]
parentQualifiedName
Qualified Name of the parent at the time of creation Size is the same as parentName.byte[]
pcrDigest
Digest of the selected PCR using nameAlg of the object for which this structure is being created pcrDigest.size shall be zero if the pcrSelect list is empty.TPMS_PCR_SELECTION[]
pcrSelect
List indicating the PCR included in pcrDigest
-
Constructor Summary
Constructors Constructor Description TPMS_CREATION_DATA()
TPMS_CREATION_DATA(TPMS_PCR_SELECTION[] _pcrSelect, byte[] _pcrDigest, TPMA_LOCALITY _locality, TPM_ALG_ID _parentNameAlg, byte[] _parentName, byte[] _parentQualifiedName, byte[] _outsideInfo)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static TPMS_CREATION_DATA
fromBytes(byte[] byteBuf)
Static marshaling helperstatic TPMS_CREATION_DATA
fromTpm(byte[] byteBuf)
Deprecated.UsefromBytes(byte[])
insteadstatic TPMS_CREATION_DATA
fromTpm(TpmBuffer buf)
Static marshaling helpervoid
initFromTpm(TpmBuffer buf)
TpmMarshaller methodString
toString()
void
toStringInternal(TpmStructurePrinter _p, int d)
Serialize this object to the structure printerbyte[]
toTpm()
Deprecated.UseTpmStructure.toBytes()
insteadvoid
toTpm(TpmBuffer buf)
TpmMarshaller method-
Methods inherited from class tss.TpmStructure
equals, hashCode, toBytes
-
-
-
-
Field Detail
-
pcrSelect
public TPMS_PCR_SELECTION[] pcrSelect
List indicating the PCR included in pcrDigest
-
pcrDigest
public byte[] pcrDigest
Digest of the selected PCR using nameAlg of the object for which this structure is being created pcrDigest.size shall be zero if the pcrSelect list is empty.
-
locality
public TPMA_LOCALITY locality
The locality at which the object was created
-
parentNameAlg
public TPM_ALG_ID parentNameAlg
NameAlg of the parent
-
parentName
public byte[] parentName
Name of the parent at time of creation The size will match digest size associated with parentNameAlg unless it is TPM_ALG_NULL, in which case the size will be 4 and parentName will be the hierarchy handle.
-
parentQualifiedName
public byte[] parentQualifiedName
Qualified Name of the parent at the time of creation Size is the same as parentName.
-
outsideInfo
public byte[] outsideInfo
Association with additional information added by the key creator This will be the contents of the outsideInfo parameter in TPM2_Create() or TPM2_CreatePrimary().
-
-
Constructor Detail
-
TPMS_CREATION_DATA
public TPMS_CREATION_DATA()
-
TPMS_CREATION_DATA
public TPMS_CREATION_DATA(TPMS_PCR_SELECTION[] _pcrSelect, byte[] _pcrDigest, TPMA_LOCALITY _locality, TPM_ALG_ID _parentNameAlg, byte[] _parentName, byte[] _parentQualifiedName, byte[] _outsideInfo)
- Parameters:
_pcrSelect
- List indicating the PCR included in pcrDigest_pcrDigest
- Digest of the selected PCR using nameAlg of the object for which this structure is being created pcrDigest.size shall be zero if the pcrSelect list is empty._locality
- The locality at which the object was created_parentNameAlg
- NameAlg of the parent_parentName
- Name of the parent at time of creation The size will match digest size associated with parentNameAlg unless it is TPM_ALG_NULL, in which case the size will be 4 and parentName will be the hierarchy handle._parentQualifiedName
- Qualified Name of the parent at the time of creation Size is the same as parentName._outsideInfo
- Association with additional information added by the key creator This will be the contents of the outsideInfo parameter in TPM2_Create() or TPM2_CreatePrimary().
-
-
Method Detail
-
toTpm
public void toTpm(TpmBuffer buf)
TpmMarshaller method- Specified by:
toTpm
in interfaceTpmMarshaller
- Overrides:
toTpm
in classTpmStructure
- Parameters:
buf
- An output byte buffer
-
initFromTpm
public void initFromTpm(TpmBuffer buf)
TpmMarshaller method- Specified by:
initFromTpm
in interfaceTpmMarshaller
- Overrides:
initFromTpm
in classTpmStructure
- Parameters:
buf
- An input byte buffer
-
toTpm
public byte[] toTpm()
Deprecated.UseTpmStructure.toBytes()
instead- Returns:
- Wire (marshaled) representation of this object
-
fromBytes
public static TPMS_CREATION_DATA fromBytes(byte[] byteBuf)
Static marshaling helper- Parameters:
byteBuf
- Wire representation of the object- Returns:
- New object constructed from its wire representation
-
fromTpm
public static TPMS_CREATION_DATA fromTpm(byte[] byteBuf)
Deprecated.UsefromBytes(byte[])
instead- Parameters:
byteBuf
- Wire representation of the object- Returns:
- New object constructed from its wire representation
-
fromTpm
public static TPMS_CREATION_DATA fromTpm(TpmBuffer buf)
Static marshaling helper- Parameters:
buf
- Wire representation of the object- Returns:
- New object constructed from its wire representation
-
toStringInternal
public void toStringInternal(TpmStructurePrinter _p, int d)
Description copied from class:TpmStructure
Serialize this object to the structure printer- Overrides:
toStringInternal
in classTpmStructure
- Parameters:
_p
- The structure accumulatord
- The data to serialize
-
-