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
Afficher le fichier Open project: Microsoft/TSS.MSR Class Usage Examples

Private Properties

Свойство Type Description
Execute TpmRc
GetPolicyDigest TpmHash

Méthodes publiques

Méthode 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

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

Method Details

AddPolicyBranch() public méthode

Add an "OR-branch"
public AddPolicyBranch ( PolicyAce newAce ) : PolicyAce
newAce PolicyAce
Résultat PolicyAce

AddPolicyBranches() public méthode

public AddPolicyBranches ( PolicyAce arr ) : void
arr PolicyAce
Résultat void

GetPolicyHashArray() public méthode

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

TpmPolicyOr() public méthode

public TpmPolicyOr ( ) : System
Résultat System

TpmPolicyOr() public méthode

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
Résultat System