C# Класс 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.
Наследование: PolicyAce
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Execute TpmRc
GetPolicyDigest TpmHash

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
Execute ( Tpm2 tpm, AuthSession authSession, PolicyTree policy ) : TpmRc
GetPolicyDigest ( TpmAlgId hashAlg ) : TpmHash

Описание методов

AddPolicyBranch() публичный Метод

Add an "OR-branch"
public AddPolicyBranch ( PolicyAce newAce ) : PolicyAce
newAce PolicyAce
Результат PolicyAce

AddPolicyBranches() публичный Метод

public AddPolicyBranches ( PolicyAce arr ) : void
arr PolicyAce
Результат void

GetPolicyHashArray() публичный Метод

Calculates and returns the policy-hashes of the attached branches.
public GetPolicyHashArray ( TpmAlgId hashAlg ) : Tpm2Lib.Tpm2bDigest[]
hashAlg TpmAlgId
Результат Tpm2Lib.Tpm2bDigest[]

TpmPolicyOr() публичный Метод

public TpmPolicyOr ( ) : System
Результат System

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.
public TpmPolicyOr ( string branchName = "" ) : System
branchName string
Результат System