Inheritance: TpmStructureBase
示例#1
0
 public Attest NvCertify(
     TpmHandle signHandle,
     TpmHandle authHandle,
     TpmHandle nvIndex,
     byte[] qualifyingData,
     ISigSchemeUnion inScheme,
     ushort size,
     ushort offset,
     [SuppressMessage("Microsoft.Design", "CA1021")]
     out ISignatureUnion signature
 )
 {
     Tpm2NvCertifyRequest inS = new Tpm2NvCertifyRequest();
     inS.signHandle = signHandle;
     inS.authHandle = authHandle;
     inS.nvIndex = nvIndex;
     inS.qualifyingData = qualifyingData;
     inS.inScheme = inScheme;
     inS.size = size;
     inS.offset = offset;
     TpmStructureBase outSBase;
     DispatchMethod(TpmCc.NvCertify, (TpmStructureBase) inS, typeof(Tpm2NvCertifyResponse), out outSBase, 3, 0);
     Tpm2NvCertifyResponse outS = (Tpm2NvCertifyResponse) outSBase;
     signature = outS.signature;
     return outS.certifyInfo;
 }
示例#2
0
 public Tpm2NvCertifyRequest(Tpm2NvCertifyRequest the_Tpm2NvCertifyRequest)
 {
     if((Object) the_Tpm2NvCertifyRequest == null ) throw new ArgumentException(Globs.GetResourceString("parmError"));
     signHandle = the_Tpm2NvCertifyRequest.signHandle;
     authHandle = the_Tpm2NvCertifyRequest.authHandle;
     nvIndex = the_Tpm2NvCertifyRequest.nvIndex;
     qualifyingData = the_Tpm2NvCertifyRequest.qualifyingData;
     size = the_Tpm2NvCertifyRequest.size;
     offset = the_Tpm2NvCertifyRequest.offset;
 }