示例#1
0
 public byte[] MakeCredential(
     TpmHandle handle,
     byte[] credential,
     byte[] objectName,
     [SuppressMessage("Microsoft.Design", "CA1021")]
     out byte[] secret
 )
 {
     Tpm2MakeCredentialRequest inS = new Tpm2MakeCredentialRequest();
     inS.handle = handle;
     inS.credential = credential;
     inS.objectName = objectName;
     TpmStructureBase outSBase;
     DispatchMethod(TpmCc.MakeCredential, (TpmStructureBase) inS, typeof(Tpm2MakeCredentialResponse), out outSBase, 1, 0);
     Tpm2MakeCredentialResponse outS = (Tpm2MakeCredentialResponse) outSBase;
     secret = outS.secret;
     return outS.credentialBlob;
 }
示例#2
0
 public Tpm2MakeCredentialRequest(Tpm2MakeCredentialRequest the_Tpm2MakeCredentialRequest)
 {
     if((Object) the_Tpm2MakeCredentialRequest == null ) throw new ArgumentException(Globs.GetResourceString("parmError"));
     handle = the_Tpm2MakeCredentialRequest.handle;
     credential = the_Tpm2MakeCredentialRequest.credential;
     objectName = the_Tpm2MakeCredentialRequest.objectName;
 }