c# - Why does RSACryptoServiceProvider.VerifyHash have a “hash algorithm identifier” parameter? -


since rsacryptoserviceprovider.verifyhash verifies hashed message - why need know hash algorithm used?

when asking signhash method , it suggested reason there for communicating hash (and not actual use in signing). won't explain in case. (since it's not out parameter.)

that's because pkcs#1 encoding of signature includes hash function oid in rsa-encrypted data block.


Comments