Package tss.tpm

Class TssObject

  • All Implemented Interfaces:
    TpmMarshaller

    public class TssObject
    extends TpmStructure
    Contains the public and the plaintext-sensitive and/or encrypted private part of a TPM key (or other object)
    • Field Detail

      • Private

        public TPM2B_PRIVATE Private
        Private part is the encrypted sensitive part of key
    • Constructor Detail

      • TssObject

        public TssObject()
      • TssObject

        public TssObject​(TPMT_PUBLIC _Public,
                         TPMT_SENSITIVE _Sensitive,
                         TPM2B_PRIVATE _Private)
        Parameters:
        _Public - Public part of key
        _Sensitive - Sensitive part of key
        _Private - Private part is the encrypted sensitive part of key
    • Method Detail

      • toTpm

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

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

        public static TssObject 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 TssObject 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