Package tss.tpm

Class MAC_StartResponse

  • All Implemented Interfaces:
    TpmMarshaller

    public class MAC_StartResponse
    extends RespStructure
    This command starts a MAC sequence. The TPM will create and initialize a MAC sequence structure, assign a handle to the sequence, and set the authValue of the sequence object to the value in auth.
    • Field Detail

      • handle

        public TPM_HANDLE handle
        A handle to reference the sequence
    • Constructor Detail

      • MAC_StartResponse

        public MAC_StartResponse()
    • Method Detail

      • toTpm

        public byte[] toTpm()
        Deprecated.
        Returns:
        Wire (marshaled) representation of this object
      • fromBytes

        public static MAC_StartResponse fromBytes​(byte[] byteBuf)
        Static marshaling helper
        Parameters:
        byteBuf - Wire representation of the object
        Returns:
        New object constructed from its wire representation
      • fromTpm

        public static MAC_StartResponse 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 MAC_StartResponse 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
      • numHandles

        public int numHandles()
        Overrides:
        numHandles in class CmdStructure
        Returns:
        Number of TPM handles contained (as fields) in this data structure
      • setHandle

        public void setHandle​(TPM_HANDLE h)
        Description copied from class: RespStructure
        Sets this structure's handle field (TPM_HANDLE) if it is present
        Overrides:
        setHandle in class RespStructure
        Parameters:
        h - The handle value