Re: SessionRemoteException: Operation not supported.
WinSCP does not download the file to calculate the checksum locally. It asks the server to calculate it remotely. But your SFTP server does not support "check-file" SFTP extension.
See https://winscp.net/eng/docs/protocols
If you want to calculate the checksum locally, download the file and use
https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.sha1
https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.hashalgorithm.computehash
See also https://winscp.net/eng/docs/library_example_verify_file_checksum
See https://winscp.net/eng/docs/protocols
If you want to calculate the checksum locally, download the file and use
SHA1.ComputeHash
:
https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.sha1
https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.hashalgorithm.computehash
See also https://winscp.net/eng/docs/library_example_verify_file_checksum