C# Class Tpm2Lib.TpmPolicyOr

This command allows options in authorizations without requiring that the TPM evaluate all of the options. If a policy may be satisfied by different sets of conditions, the TPM need only evaluate one set that satisfies the policy. This command will indicate that one of the required sets of conditions has been satisfied.
Inheritance: PolicyAce
Mostra file Open project: Microsoft/TSS.MSR Class Usage Examples

Private Properties

Property Type Description
Execute TpmRc
GetPolicyDigest TpmHash

Public Methods

Method Description
AddPolicyBranch ( PolicyAce newAce ) : PolicyAce

Add an "OR-branch"

AddPolicyBranches ( PolicyAce arr ) : void
GetPolicyHashArray ( TpmAlgId hashAlg ) : Tpm2Lib.Tpm2bDigest[]

Calculates and returns the policy-hashes of the attached branches.

TpmPolicyOr ( ) : System
TpmPolicyOr ( string branchName = "" ) : System

This command allows options in authorizations without requiring that the TPM evaluate all of the options. If a policy may be satisfied by different sets of conditions, the TPM need only evaluate one set that satisfies the policy. This command will indicate that one of the required sets of conditions has been satisfied.

Private Methods

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

Method Details

AddPolicyBranch() public method

Add an "OR-branch"
public AddPolicyBranch ( PolicyAce newAce ) : PolicyAce
newAce PolicyAce
return PolicyAce

AddPolicyBranches() public method

public AddPolicyBranches ( PolicyAce arr ) : void
arr PolicyAce
return void

GetPolicyHashArray() public method

Calculates and returns the policy-hashes of the attached branches.
public GetPolicyHashArray ( TpmAlgId hashAlg ) : Tpm2Lib.Tpm2bDigest[]
hashAlg TpmAlgId
return Tpm2Lib.Tpm2bDigest[]

TpmPolicyOr() public method

public TpmPolicyOr ( ) : System
return System

TpmPolicyOr() public method

This command allows options in authorizations without requiring that the TPM evaluate all of the options. If a policy may be satisfied by different sets of conditions, the TPM need only evaluate one set that satisfies the policy. This command will indicate that one of the required sets of conditions has been satisfied.
public TpmPolicyOr ( string branchName = "" ) : System
branchName string
return System