Compute hashes of files.