private void ValidateHandleUsage(TpmCc command, byte[] inBuf) { CommandInfo commInfo = Tpm2.CommandInfoFromCommandCode(command); if (commInfo.HandleCountIn == 0) { return; } // else see if any of the inHandles are TpmRh.Platform CrackedCommand cc = CommandProcessor.CrackCommand(inBuf); TpmHandle[] handles = cc.Handles; foreach (TpmHandle h in handles) { if (h == TpmRh.Platform) { TestUsesPlatformAuth = true; } } }