You would use trusted hardware like Intel SGX to provide proof of untampered processing of a set of data. Town Crier already has a proof of concept on the Ethereum blockchain. This allows one to prove to a smart contract that a webpage served by a particular PKI certificate holder contains some set of data.