Package tss.tpm

Class 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 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 byte[] toTpm()
        Deprecated.
        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.
        Use fromBytes(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 class TpmStructure
        Parameters:
        _p - The structure accumulator
        d - The data to serialize