C# Class Tpm2Lib.TpmPolicyPcr

Inheritance: PolicyAce
Datei anzeigen Open project: Microsoft/TSS.MSR

Private Properties

Property Type Description
Execute TpmRc
GetPolicyDigest TpmHash

Public Methods

Method Description
TpmPolicyPcr ( ) : System
TpmPolicyPcr ( PcrValueCollection pcrs, string branchName = "" ) : System

This command is used to cause conditional gating of a policy based on PCR. This allows one group of authorizations to occur when PCRs are in one state and a different set of authorizations when the PCRs are in a different state. If this command is used for a trial policySession, the policyHash will be updated using the values from the command rather than the values from digest of the TPM PCR.

Private Methods

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

Method Details

TpmPolicyPcr() public method

public TpmPolicyPcr ( ) : System
return System

TpmPolicyPcr() public method

This command is used to cause conditional gating of a policy based on PCR. This allows one group of authorizations to occur when PCRs are in one state and a different set of authorizations when the PCRs are in a different state. If this command is used for a trial policySession, the policyHash will be updated using the values from the command rather than the values from digest of the TPM PCR.
public TpmPolicyPcr ( PcrValueCollection pcrs, string branchName = "" ) : System
pcrs PcrValueCollection
branchName string
return System