Package tss.tpm

Class TPM2_NV_Read_REQUEST

  • All Implemented Interfaces:
    TpmMarshaller

    public class TPM2_NV_Read_REQUEST
    extends ReqStructure
    This command reads a value from an area in NV memory previously defined by TPM2_NV_DefineSpace().
    • Field Detail

      • authHandle

        public TPM_HANDLE authHandle
        The handle indicating the source of the authorization value Auth Index: 1 Auth Role: USER
      • nvIndex

        public TPM_HANDLE nvIndex
        The NV Index to be read Auth Index: None
      • size

        public int size
        Number of octets to read
      • offset

        public int offset
        Octet offset into the NV area This value shall be less than or equal to the size of the nvIndex data.
    • Constructor Detail

      • TPM2_NV_Read_REQUEST

        public TPM2_NV_Read_REQUEST()
      • TPM2_NV_Read_REQUEST

        public TPM2_NV_Read_REQUEST​(TPM_HANDLE _authHandle,
                                    TPM_HANDLE _nvIndex,
                                    int _size,
                                    int _offset)
        Parameters:
        _authHandle - The handle indicating the source of the authorization value Auth Index: 1 Auth Role: USER
        _nvIndex - The NV Index to be read Auth Index: None
        _size - Number of octets to read
        _offset - Octet offset into the NV area This value shall be less than or equal to the size of the nvIndex data.
    • Method Detail

      • toTpm

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

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

        public static TPM2_NV_Read_REQUEST 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 TPM2_NV_Read_REQUEST 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
      • numAuthHandles

        public int numAuthHandles()
        Overrides:
        numAuthHandles in class ReqStructure
        Returns:
        Number of authorization TPM handles contained in this data structure
      • getHandles

        public TPM_HANDLE[] getHandles()
        Overrides:
        getHandles in class ReqStructure
        Returns:
        An array of TPM handles contained in this TPM request data structure