System::Security::Cryptography::RSACryptoServiceProvider::VerifyHash method

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
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

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)
ParameterTypeDescription
rgb_hashconst ByteArrayPtr&Hash calculated for received data.
strconst String&Name of hash algorithm used.
rgb_signatureconst ByteArrayPtr&Signature as received.

ReturnValue

True if signature is valid, false otherwise.

See Also