This calculates the Keccak hash of the byte array all the way from Tn to Ti or Td (inclusive). Please note that the Keccak has two variants. One is the “original” version of KECCAK-256. The other is the “standardised” one, often referred to as SHA-3. Ethereum uses the “original” version. See this post for more details.