示例#1
0
 public Attest GetCommandAuditDigest(
     TpmHandle privacyHandle,
     TpmHandle signHandle,
     byte[] qualifyingData,
     ISigSchemeUnion inScheme,
     [SuppressMessage("Microsoft.Design", "CA1021")]
     out ISignatureUnion signature
 )
 {
     Tpm2GetCommandAuditDigestRequest inS = new Tpm2GetCommandAuditDigestRequest();
     inS.privacyHandle = privacyHandle;
     inS.signHandle = signHandle;
     inS.qualifyingData = qualifyingData;
     inS.inScheme = inScheme;
     TpmStructureBase outSBase;
     DispatchMethod(TpmCc.GetCommandAuditDigest, (TpmStructureBase) inS, typeof(Tpm2GetCommandAuditDigestResponse), out outSBase, 2, 0);
     Tpm2GetCommandAuditDigestResponse outS = (Tpm2GetCommandAuditDigestResponse) outSBase;
     signature = outS.signature;
     return outS.auditInfo;
 }
示例#2
0
 public Tpm2GetCommandAuditDigestRequest(Tpm2GetCommandAuditDigestRequest the_Tpm2GetCommandAuditDigestRequest)
 {
     if((Object) the_Tpm2GetCommandAuditDigestRequest == null ) throw new ArgumentException(Globs.GetResourceString("parmError"));
     privacyHandle = the_Tpm2GetCommandAuditDigestRequest.privacyHandle;
     signHandle = the_Tpm2GetCommandAuditDigestRequest.signHandle;
     qualifyingData = the_Tpm2GetCommandAuditDigestRequest.qualifyingData;
 }