Package tss.tpm

Class TPMS_KEYEDHASH_PARMS

    • Field Detail

      • scheme

        public TPMU_SCHEME_KEYEDHASH scheme
        Indicates the signing method used for a keyedHash signing object. This field also determines the size of the data field for a data object created with TPM2_Create() or TPM2_CreatePrimary(). One of: TPMS_SCHEME_HMAC, TPMS_SCHEME_XOR, TPMS_NULL_SCHEME_KEYEDHASH.
    • Constructor Detail

      • TPMS_KEYEDHASH_PARMS

        public TPMS_KEYEDHASH_PARMS()
      • TPMS_KEYEDHASH_PARMS

        public TPMS_KEYEDHASH_PARMS​(TPMU_SCHEME_KEYEDHASH _scheme)
        Parameters:
        _scheme - Indicates the signing method used for a keyedHash signing object. This field also determines the size of the data field for a data object created with TPM2_Create() or TPM2_CreatePrimary(). One of: TPMS_SCHEME_HMAC, TPMS_SCHEME_XOR, TPMS_NULL_SCHEME_KEYEDHASH.
    • Method Detail

      • schemeScheme

        public TPM_ALG_ID schemeScheme()
        Selects the scheme
      • toTpm

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

        public static TPMS_KEYEDHASH_PARMS 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_KEYEDHASH_PARMS 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_KEYEDHASH_PARMS 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