Example #1
0
 public byte[] PolicyGetDigest(
     TpmHandle policySession
 )
 {
     Tpm2PolicyGetDigestRequest inS = new Tpm2PolicyGetDigestRequest();
     inS.policySession = policySession;
     TpmStructureBase outSBase;
     DispatchMethod(TpmCc.PolicyGetDigest, (TpmStructureBase) inS, typeof(Tpm2PolicyGetDigestResponse), out outSBase, 1, 0);
     Tpm2PolicyGetDigestResponse outS = (Tpm2PolicyGetDigestResponse) outSBase;
     return outS.policyDigest;
 }
Example #2
0
 public Tpm2PolicyGetDigestRequest(Tpm2PolicyGetDigestRequest the_Tpm2PolicyGetDigestRequest)
 {
     if((Object) the_Tpm2PolicyGetDigestRequest == null ) throw new ArgumentException(Globs.GetResourceString("parmError"));
     policySession = the_Tpm2PolicyGetDigestRequest.policySession;
 }