Tpm2Lib.Tpm2.PolicyPCR C# (CSharp) Method

PolicyPCR() private method

private PolicyPCR ( TpmHandle policySession, byte pcrDigest, PcrSelection pcrs ) : void
policySession TpmHandle
pcrDigest byte
pcrs PcrSelection
return void
        public void PolicyPCR(
            TpmHandle policySession,
            byte[] pcrDigest,
            PcrSelection[] pcrs
        )
        {
            Tpm2PolicyPCRRequest inS = new Tpm2PolicyPCRRequest();
            inS.policySession = policySession;
            inS.pcrDigest = pcrDigest;
            inS.pcrs = pcrs;
            TpmStructureBase outSBase;
            DispatchMethod(TpmCc.PolicyPCR, (TpmStructureBase) inS, typeof(Tpm2PolicyPCRResponse), out outSBase, 1, 0);
        }
        /// <summary>

Usage Example

Exemplo n.º 1
0
 internal override TpmRc Execute(Tpm2 tpm, AuthSession sess, PolicyTree policy)
 {
     tpm.PolicyPCR(sess, Pcrs.GetSelectionHash(policy.PolicyHash),
                   Pcrs.GetPcrSelectionArray());
     return(tpm._GetLastResponseCode());
 }
All Usage Examples Of Tpm2Lib.Tpm2::PolicyPCR
Tpm2