Пример #1
0
 public byte[] SequenceComplete(
     TpmHandle sequenceHandle,
     byte[] buffer,
     TpmHandle hierarchy,
     [SuppressMessage("Microsoft.Design", "CA1021")]
     out TkHashcheck validation
 )
 {
     Tpm2SequenceCompleteRequest inS = new Tpm2SequenceCompleteRequest();
     inS.sequenceHandle = sequenceHandle;
     inS.buffer = buffer;
     inS.hierarchy = hierarchy;
     TpmStructureBase outSBase;
     DispatchMethod(TpmCc.SequenceComplete, (TpmStructureBase) inS, typeof(Tpm2SequenceCompleteResponse), out outSBase, 1, 0);
     Tpm2SequenceCompleteResponse outS = (Tpm2SequenceCompleteResponse) outSBase;
     validation = outS.validation;
     return outS.result;
 }
Пример #2
0
 public Tpm2SequenceCompleteRequest(Tpm2SequenceCompleteRequest the_Tpm2SequenceCompleteRequest)
 {
     if((Object) the_Tpm2SequenceCompleteRequest == null ) throw new ArgumentException(Globs.GetResourceString("parmError"));
     sequenceHandle = the_Tpm2SequenceCompleteRequest.sequenceHandle;
     buffer = the_Tpm2SequenceCompleteRequest.buffer;
     hierarchy = the_Tpm2SequenceCompleteRequest.hierarchy;
 }