VerifyHash()

RSACryptoServiceProvider::VerifyHash(const ByteArrayPtr&, const String&, const ByteArrayPtr&) method

Checks data signature.

bool System::Security::Cryptography::RSACryptoServiceProvider::VerifyHash(const ByteArrayPtr &rgb_hash, const String &str, const ByteArrayPtr &rgb_signature)

Arguments

ParameterTypeDescription
rgb_hashconst ByteArrayPtr&Hash calculated for received data.
strconst String&Name of hash algorithm used.
rgb_signatureconst ByteArrayPtr&Signature as received.

Return Value

True if signature is valid, false otherwise.

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

Verifies that the signature of the specified hash is valid.

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

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