Package tss.tpm

Class StartAuthSessionResponse

  • All Implemented Interfaces:
    TpmMarshaller

    public class StartAuthSessionResponse
    extends RespStructure
    This command is used to start an authorization session using alternative methods of establishing the session key (sessionKey). The session key is then used to derive values used for authorization and for encrypting parameters.
    • Field Detail

      • handle

        public TPM_HANDLE handle
        Handle for the newly created session
      • nonceTPM

        public byte[] nonceTPM
        The initial nonce from the TPM, used in the computation of the sessionKey
    • Constructor Detail

      • StartAuthSessionResponse

        public StartAuthSessionResponse()
    • Method Detail

      • toTpm

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

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

        public static StartAuthSessionResponse 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 StartAuthSessionResponse 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
      • sessEncInfo

        public SessEncInfo sessEncInfo()
        Overrides:
        sessEncInfo in class CmdStructure
        Returns:
        Non-zero size info of the encryptable command/response parameter if session based encryption can be applied to this object (i.e. its first non-handle field is marshaled in size-prefixed form). Otherwise returns zero initialized struct.