Inheritance: TpmStructureBase
Beispiel #1
0
 public TpmHandle CreateLoaded(
     TpmHandle parentHandle,
     SensitiveCreate inSensitive,
     byte[] inPublic,
     [SuppressMessage("Microsoft.Design", "CA1021")]
     out TpmPrivate outPrivate,
     [SuppressMessage("Microsoft.Design", "CA1021")]
     out TpmPublic outPublic
 )
 {
     Tpm2CreateLoadedRequest inS = new Tpm2CreateLoadedRequest();
     inS.parentHandle = parentHandle;
     inS.inSensitive = inSensitive;
     inS.inPublic = inPublic;
     TpmStructureBase outSBase;
     DispatchMethod(TpmCc.CreateLoaded, (TpmStructureBase) inS, typeof(Tpm2CreateLoadedResponse), out outSBase, 1, 1);
     Tpm2CreateLoadedResponse outS = (Tpm2CreateLoadedResponse) outSBase;
     outPrivate = outS.outPrivate;
     outPublic = outS.outPublic;
     return outS.objectHandle;
 }
Beispiel #2
0
 public Tpm2CreateLoadedRequest(Tpm2CreateLoadedRequest the_Tpm2CreateLoadedRequest)
 {
     if((Object) the_Tpm2CreateLoadedRequest == null ) throw new ArgumentException(Globs.GetResourceString("parmError"));
     parentHandle = the_Tpm2CreateLoadedRequest.parentHandle;
     inSensitive = the_Tpm2CreateLoadedRequest.inSensitive;
     inPublic = the_Tpm2CreateLoadedRequest.inPublic;
 }