Package tss.tpm

Class TPMS_ALG_PROPERTY

  • All Implemented Interfaces:
    TpmMarshaller

    public class TPMS_ALG_PROPERTY
    extends TpmStructure
    This structure is used to report the properties of an algorithm identifier. It is returned in response to a TPM2_GetCapability() with capability = TPM_CAP_ALG.
    • Field Detail

      • alg

        public TPM_ALG_ID alg
        An algorithm identifier
      • algProperties

        public TPMA_ALGORITHM algProperties
        The attributes of the algorithm
    • Constructor Detail

      • TPMS_ALG_PROPERTY

        public TPMS_ALG_PROPERTY()
      • TPMS_ALG_PROPERTY

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

      • toTpm

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

        public static TPMS_ALG_PROPERTY 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_ALG_PROPERTY 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_ALG_PROPERTY 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