Snapshots - guarantee of correctness?

We verify the checksum of every file uploaded to the repository

Can I somehow "manually" check the checksum of a file uploaded? (correctness)

I have a snapshot made for some resources.
I can make a checksum for snapshot files.

How can I calculate the checksum for indexes/shards in Elasticsearch?