public TpmHandle HmacStart( TpmHandle handle, byte[] auth, TpmAlgId hashAlg ) { Tpm2HmacStartRequest inS = new Tpm2HmacStartRequest(); inS.handle = handle; inS.auth = auth; inS.hashAlg = hashAlg; TpmStructureBase outSBase; DispatchMethod(TpmCc.HmacStart, (TpmStructureBase) inS, typeof(Tpm2HmacStartResponse), out outSBase, 1, 1); Tpm2HmacStartResponse outS = (Tpm2HmacStartResponse) outSBase; outS.sequenceHandle.Name = new byte[0]; return outS.sequenceHandle; }
public Tpm2HmacStartRequest(Tpm2HmacStartRequest the_Tpm2HmacStartRequest) { if((Object) the_Tpm2HmacStartRequest == null ) throw new ArgumentException(Globs.GetResourceString("parmError")); handle = the_Tpm2HmacStartRequest.handle; auth = the_Tpm2HmacStartRequest.auth; hashAlg = the_Tpm2HmacStartRequest.hashAlg; }