I have the following scenario : Two parties want to exchange files.
First party publishes a file on a secure server
First party sends to the second, a hash of the file in order to be able to verify integrity.
Second party downloads the file from the secure server
Second party computes the hash of the downloaded file and sends the hash to the first party to confirm integrity.
What is the best way to implement this scenario? -what is the best hash function to compute for file integrity?
-what is the best way to exchange the hash between the two parties?