Inheritance: TpmStructureBase
Ejemplo n.º 1
0
 public EccPoint Commit(
     TpmHandle signHandle,
     EccPoint P1,
     byte[] s2,
     byte[] y2,
     [SuppressMessage("Microsoft.Design", "CA1021")]
     out EccPoint L,
     [SuppressMessage("Microsoft.Design", "CA1021")]
     out EccPoint E,
     [SuppressMessage("Microsoft.Design", "CA1021")]
     out ushort counter
 )
 {
     Tpm2CommitRequest inS = new Tpm2CommitRequest();
     inS.signHandle = signHandle;
     inS.P1 = P1;
     inS.s2 = s2;
     inS.y2 = y2;
     TpmStructureBase outSBase;
     DispatchMethod(TpmCc.Commit, (TpmStructureBase) inS, typeof(Tpm2CommitResponse), out outSBase, 1, 0);
     Tpm2CommitResponse outS = (Tpm2CommitResponse) outSBase;
     L = outS.L;
     E = outS.E;
     counter = outS.counter;
     return outS.K;
 }
Ejemplo n.º 2
0
 public Tpm2CommitRequest(Tpm2CommitRequest the_Tpm2CommitRequest)
 {
     if((Object) the_Tpm2CommitRequest == null ) throw new ArgumentException(Globs.GetResourceString("parmError"));
     signHandle = the_Tpm2CommitRequest.signHandle;
     P1 = the_Tpm2CommitRequest.P1;
     s2 = the_Tpm2CommitRequest.s2;
     y2 = the_Tpm2CommitRequest.y2;
 }