Esempio n. 1
0
 public TpmHandle HashSequenceStart(
     byte[] auth,
     TpmAlgId hashAlg
 )
 {
     Tpm2HashSequenceStartRequest inS = new Tpm2HashSequenceStartRequest();
     inS.auth = auth;
     inS.hashAlg = hashAlg;
     TpmStructureBase outSBase;
     DispatchMethod(TpmCc.HashSequenceStart, (TpmStructureBase) inS, typeof(Tpm2HashSequenceStartResponse), out outSBase, 0, 1);
     Tpm2HashSequenceStartResponse outS = (Tpm2HashSequenceStartResponse) outSBase;
     outS.sequenceHandle.Name = new byte[0];
     return outS.sequenceHandle;
 }
Esempio n. 2
0
 public Tpm2HashSequenceStartRequest(Tpm2HashSequenceStartRequest the_Tpm2HashSequenceStartRequest)
 {
     if((Object) the_Tpm2HashSequenceStartRequest == null ) throw new ArgumentException(Globs.GetResourceString("parmError"));
     auth = the_Tpm2HashSequenceStartRequest.auth;
     hashAlg = the_Tpm2HashSequenceStartRequest.hashAlg;
 }