Inheritance: TpmStructureBase
示例#1
0
 public Attest Certify(
     TpmHandle objectHandle,
     TpmHandle signHandle,
     byte[] qualifyingData,
     ISigSchemeUnion inScheme,
     [SuppressMessage("Microsoft.Design", "CA1021")]
     out ISignatureUnion signature
 )
 {
     Tpm2CertifyRequest inS = new Tpm2CertifyRequest();
     inS.objectHandle = objectHandle;
     inS.signHandle = signHandle;
     inS.qualifyingData = qualifyingData;
     inS.inScheme = inScheme;
     TpmStructureBase outSBase;
     DispatchMethod(TpmCc.Certify, (TpmStructureBase) inS, typeof(Tpm2CertifyResponse), out outSBase, 2, 0);
     Tpm2CertifyResponse outS = (Tpm2CertifyResponse) outSBase;
     signature = outS.signature;
     return outS.certifyInfo;
 }
示例#2
0
 public Tpm2CertifyRequest(Tpm2CertifyRequest the_Tpm2CertifyRequest)
 {
     if((Object) the_Tpm2CertifyRequest == null ) throw new ArgumentException(Globs.GetResourceString("parmError"));
     objectHandle = the_Tpm2CertifyRequest.objectHandle;
     signHandle = the_Tpm2CertifyRequest.signHandle;
     qualifyingData = the_Tpm2CertifyRequest.qualifyingData;
 }