public void PcrSetAuthPolicy( TpmHandle authHandle, byte[] authPolicy, TpmAlgId hashAlg, TpmHandle pcrNum ) { Tpm2PcrSetAuthPolicyRequest inS = new Tpm2PcrSetAuthPolicyRequest(); inS.authHandle = authHandle; inS.authPolicy = authPolicy; inS.hashAlg = hashAlg; inS.pcrNum = pcrNum; TpmStructureBase outSBase; DispatchMethod(TpmCc.PcrSetAuthPolicy, (TpmStructureBase) inS, typeof(Tpm2PcrSetAuthPolicyResponse), out outSBase, 1, 0); }
public Tpm2PcrSetAuthPolicyRequest(Tpm2PcrSetAuthPolicyRequest the_Tpm2PcrSetAuthPolicyRequest) { if((Object) the_Tpm2PcrSetAuthPolicyRequest == null ) throw new ArgumentException(Globs.GetResourceString("parmError")); authHandle = the_Tpm2PcrSetAuthPolicyRequest.authHandle; authPolicy = the_Tpm2PcrSetAuthPolicyRequest.authPolicy; hashAlg = the_Tpm2PcrSetAuthPolicyRequest.hashAlg; pcrNum = the_Tpm2PcrSetAuthPolicyRequest.pcrNum; }