C# Class Tpm2Lib.TpmPolicyAuthorize

This command allows policies to change. If a policy were static, then it would be difficult to add users to a policy. This command lets a policy authority sign a new policy so that it may be used in an existing policy.
Inheritance: PolicyAce
Mostrar archivo Open project: Microsoft/TSS.MSR

Public Properties

Property Type Description
PolicyRef byte[]
PolicyToReplace byte[]
Sig1 SignatureRsapss
Sig2 SignatureRsassa
SigningHash TpmAlgId
SigningKey TpmPublic

Public Methods

Method Description
TpmPolicyAuthorize ( ) : System
TpmPolicyAuthorize ( byte policyToReplace, byte policyRef, TpmPublic signingKey, TpmAlgId signingHash, ISignatureUnion signature, string branchName = "" ) : System

This command allows policies to change. If a policy were static, then it would be difficult to add users to a policy. This command lets a policy authority sign a new policy so that it may be used in an existing policy.

Private Methods

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

Method Details

TpmPolicyAuthorize() public method

public TpmPolicyAuthorize ( ) : System
return System

TpmPolicyAuthorize() public method

This command allows policies to change. If a policy were static, then it would be difficult to add users to a policy. This command lets a policy authority sign a new policy so that it may be used in an existing policy.
public TpmPolicyAuthorize ( byte policyToReplace, byte policyRef, TpmPublic signingKey, TpmAlgId signingHash, ISignatureUnion signature, string branchName = "" ) : System
policyToReplace byte
policyRef byte
signingKey TpmPublic
signingHash TpmAlgId
signature ISignatureUnion
branchName string
return System

Property Details

PolicyRef public_oe property

public byte[] PolicyRef
return byte[]

PolicyToReplace public_oe property

public byte[] PolicyToReplace
return byte[]

Sig1 public_oe property

public SignatureRsapss,Tpm2Lib Sig1
return SignatureRsapss

Sig2 public_oe property

public SignatureRsassa,Tpm2Lib Sig2
return SignatureRsassa

SigningHash public_oe property

public TpmAlgId SigningHash
return TpmAlgId

SigningKey public_oe property

public TpmPublic,Tpm2Lib SigningKey
return TpmPublic