C# Class Tpm2Lib.PolicyAce

Mostra file Open project: Microsoft/TSS.MSR Class Usage Examples

Public Methods

Method Description
AddNextAce ( PolicyAce nextAce ) : PolicyAce
And ( PolicyAce nextAce ) : PolicyAce
GetSchema ( IEnumerable typesToExport ) : string
ToString ( ) : string

Protected Methods

Method Description
ArrayToChain ( PolicyAce arr ) : PolicyAce
PolicyAce ( string branchName ) : System

Private Methods

Method Description
Execute ( Tpm2 tpm, AuthSession authSession, PolicyTree policy ) : TpmRc
GetNextAcePolicyDigest ( TpmAlgId hashAlg ) : TpmHash
GetPolicyDigest ( TpmAlgId hashAlg ) : TpmHash
PolicyUpdate ( TpmHash currentHash, TpmCc commandCode, byte name, byte refData ) : TpmHash

Return an updated policy digest in accordance with the TPM 2.0 Specification Section 23.2.3 Policy Digest Update Function

PolicyUpdate1 ( TpmHash currentHash, TpmCc commandCode, byte name ) : TpmHash

Implements the first step of the policy digest update (see the PolicyUpdate() method), and also used by PolicyAuthorizeNV.

Method Details

AddNextAce() public method

public AddNextAce ( PolicyAce nextAce ) : PolicyAce
nextAce PolicyAce
return PolicyAce

And() public method

public And ( PolicyAce nextAce ) : PolicyAce
nextAce PolicyAce
return PolicyAce

ArrayToChain() protected method

protected ArrayToChain ( PolicyAce arr ) : PolicyAce
arr PolicyAce
return PolicyAce

GetSchema() public static method

public static GetSchema ( IEnumerable typesToExport ) : string
typesToExport IEnumerable
return string

PolicyAce() protected method

protected PolicyAce ( string branchName ) : System
branchName string
return System

ToString() public method

public ToString ( ) : string
return string