Inheritance: TpmStructureBase
Esempio n. 1
0
 public Attest GetTime(
     TpmHandle privacyAdminHandle,
     TpmHandle signHandle,
     byte[] qualifyingData,
     ISigSchemeUnion inScheme,
     [SuppressMessage("Microsoft.Design", "CA1021")]
     out ISignatureUnion signature
 )
 {
     Tpm2GetTimeRequest inS = new Tpm2GetTimeRequest();
     inS.privacyAdminHandle = privacyAdminHandle;
     inS.signHandle = signHandle;
     inS.qualifyingData = qualifyingData;
     inS.inScheme = inScheme;
     TpmStructureBase outSBase;
     DispatchMethod(TpmCc.GetTime, (TpmStructureBase) inS, typeof(Tpm2GetTimeResponse), out outSBase, 2, 0);
     Tpm2GetTimeResponse outS = (Tpm2GetTimeResponse) outSBase;
     signature = outS.signature;
     return outS.timeInfo;
 }
Esempio n. 2
0
 public Tpm2GetTimeRequest(Tpm2GetTimeRequest the_Tpm2GetTimeRequest)
 {
     if((Object) the_Tpm2GetTimeRequest == null ) throw new ArgumentException(Globs.GetResourceString("parmError"));
     privacyAdminHandle = the_Tpm2GetTimeRequest.privacyAdminHandle;
     signHandle = the_Tpm2GetTimeRequest.signHandle;
     qualifyingData = the_Tpm2GetTimeRequest.qualifyingData;
 }