Package tss.tpm

Class TPMS_ALGORITHM_DESCRIPTION

  • All Implemented Interfaces:
    TpmMarshaller

    public class TPMS_ALGORITHM_DESCRIPTION
    extends TpmStructure
    This structure is a return value for a TPM2_GetCapability() that reads the installed algorithms.
    • Constructor Detail

      • TPMS_ALGORITHM_DESCRIPTION

        public TPMS_ALGORITHM_DESCRIPTION()
      • TPMS_ALGORITHM_DESCRIPTION

        public TPMS_ALGORITHM_DESCRIPTION​(TPM_ALG_ID _alg,
                                          TPMA_ALGORITHM _attributes)
        Parameters:
        _alg - An algorithm
        _attributes - The attributes of the algorithm
    • Method Detail

      • toTpm

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

        public static TPMS_ALGORITHM_DESCRIPTION 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_ALGORITHM_DESCRIPTION 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_ALGORITHM_DESCRIPTION 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