C# Class Tpm2Lib.TpmPolicySecret

This command includes a secret-based authorization to a policy. The caller proves knowledge of the secret value using either a password or an HMAC-based authorization session.
Inheritance: TpmPolicyWithExpiration
ファイルを表示 Open project: Microsoft/TSS.MSR Class Usage Examples

Public Properties

Property Type Description
AuthVal AuthValue
AuthorityHandle TpmHandle
AuthorityName byte[]

Public Methods

Method Description
TpmPolicySecret ( ) : System
TpmPolicySecret ( TpmHandle authorityHandle, byte authorityName, AuthValue theAuthVal, bool useNonceTpm, int expirationTime, byte cpHash, byte policyRef, string branchName = "" ) : System
TpmPolicySecret ( byte authObjectName, bool useNonceTpm, byte cpHash, byte policyRef, int expirationTime, string branchName = "" ) : System

Private Methods

Method Description
Execute ( Tpm2 tpm, AuthSession authSession, PolicyTree policy ) : TpmRc
GetPolicyDigest ( TpmAlgId hashAlg ) : TpmHash

Method Details

TpmPolicySecret() public method

public TpmPolicySecret ( ) : System
return System

TpmPolicySecret() public method

public TpmPolicySecret ( TpmHandle authorityHandle, byte authorityName, AuthValue theAuthVal, bool useNonceTpm, int expirationTime, byte cpHash, byte policyRef, string branchName = "" ) : System
authorityHandle TpmHandle
authorityName byte
theAuthVal AuthValue
useNonceTpm bool
expirationTime int
cpHash byte
policyRef byte
branchName string
return System

TpmPolicySecret() public method

public TpmPolicySecret ( byte authObjectName, bool useNonceTpm, byte cpHash, byte policyRef, int expirationTime, string branchName = "" ) : System
authObjectName byte
useNonceTpm bool
cpHash byte
policyRef byte
expirationTime int
branchName string
return System

Property Details

AuthVal public_oe property

public AuthValue,Tpm2Lib AuthVal
return AuthValue

AuthorityHandle public_oe property

public TpmHandle,Tpm2Lib AuthorityHandle
return TpmHandle

AuthorityName public_oe property

public byte[] AuthorityName
return byte[]