Пример #1
0
 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);
 }
Пример #2
0
 public Tpm2PolicyPCRRequest(Tpm2PolicyPCRRequest the_Tpm2PolicyPCRRequest)
 {
     if((Object) the_Tpm2PolicyPCRRequest == null ) throw new ArgumentException(Globs.GetResourceString("parmError"));
     policySession = the_Tpm2PolicyPCRRequest.policySession;
     pcrDigest = the_Tpm2PolicyPCRRequest.pcrDigest;
     pcrs = the_Tpm2PolicyPCRRequest.pcrs;
 }