C# Class Tpm2Lib.TpmPolicyNameHash

This command allows a policy to be bound to a specific set of handles without being bound to the parameters of the command. This is most useful for commands such as TPM2_Duplicate() and for TPM2_PCR_Event() when the referenced PCR requires a policy.
Inheritance: PolicyAce
显示文件 Open project: Microsoft/TSS.MSR

Public Properties

Property Type Description
NameHash byte[]

Public Methods

Method Description
TpmPolicyNameHash ( ) : System
TpmPolicyNameHash ( byte expectedNameHash, string branchName = "" ) : System

This command allows a policy to be bound to a specific set of handles without being bound to the parameters of the command. This is most useful for commands such as TPM2_Duplicate() and for TPM2_PCR_Event() when the referenced PCR requires a policy.

Private Methods

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

Method Details

TpmPolicyNameHash() public method

public TpmPolicyNameHash ( ) : System
return System

TpmPolicyNameHash() public method

This command allows a policy to be bound to a specific set of handles without being bound to the parameters of the command. This is most useful for commands such as TPM2_Duplicate() and for TPM2_PCR_Event() when the referenced PCR requires a policy.
public TpmPolicyNameHash ( byte expectedNameHash, string branchName = "" ) : System
expectedNameHash byte
branchName string
return System

Property Details

NameHash public_oe property

public byte[] NameHash
return byte[]