VerifyHash()

RSA::VerifyHash(ByteArrayPtr, ByteArrayPtr, const HashAlgorithmName&, SharedPtr<RSASignaturePadding>) method

Verifies that the signature of the specified hash is valid.

virtual bool System::Security::Cryptography::RSA::VerifyHash(ByteArrayPtr hash, ByteArrayPtr signature, const HashAlgorithmName &hash_algorithm, SharedPtr<RSASignaturePadding> padding)

Arguments

ParameterTypeDescription
hashByteArrayPtrHash value of the signed data.
signatureByteArrayPtrSignature data.
hash_algorithmconst HashAlgorithmName&Hash algorithm.
paddingSharedPtr<RSASignaturePadding>Padding mode. return true if signature is valid, otherwise - false.

See Also