Package tss.tpm

Class TPMT_SENSITIVE

  • All Implemented Interfaces:
    TpmMarshaller

    public class TPMT_SENSITIVE
    extends TpmStructure
    AuthValue shall not be larger than the size of the digest produced by the nameAlg of the object. seedValue shall be the size of the digest produced by the nameAlg of the object.
    • Field Detail

      • authValue

        public byte[] authValue
        User authorization data The authValue may be a zero-length string.
      • seedValue

        public byte[] seedValue
        For a parent object, the optional protection seed; for other objects, the obfuscation value
      • sensitive

        public TPMU_SENSITIVE_COMPOSITE sensitive
        The type-specific private data One of: TPM2B_PRIVATE_KEY_RSA, TPM2B_ECC_PARAMETER, TPM2B_SENSITIVE_DATA, TPM2B_SYM_KEY, TPM2B_PRIVATE_VENDOR_SPECIFIC.
    • Constructor Detail

      • TPMT_SENSITIVE

        public TPMT_SENSITIVE()
      • TPMT_SENSITIVE

        public TPMT_SENSITIVE​(byte[] _authValue,
                              byte[] _seedValue,
                              TPMU_SENSITIVE_COMPOSITE _sensitive)
        Parameters:
        _authValue - User authorization data The authValue may be a zero-length string.
        _seedValue - For a parent object, the optional protection seed; for other objects, the obfuscation value
        _sensitive - The type-specific private data One of: TPM2B_PRIVATE_KEY_RSA, TPM2B_ECC_PARAMETER, TPM2B_SENSITIVE_DATA, TPM2B_SYM_KEY, TPM2B_PRIVATE_VENDOR_SPECIFIC.
    • Method Detail

      • sensitiveType

        public TPM_ALG_ID sensitiveType()
        Identifier for the sensitive area This shall be the same as the type parameter of the associated public area.
      • toTpm

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

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

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