System::Security::Cryptography::DSACryptoServiceProvider::VerifyData method

DSACryptoServiceProvider::VerifyData(const ByteArrayPtr&, const ByteArrayPtr&) method

Checks data signature.

bool System::Security::Cryptography::DSACryptoServiceProvider::VerifyData(const ByteArrayPtr &buffer, const ByteArrayPtr &signature)
ParameterTypeDescription
bufferconst ByteArrayPtr&Data to check signature for.
signatureconst ByteArrayPtr&Signature as received.

ReturnValue

True if signature is valid, false otherwise.

See Also

DSACryptoServiceProvider::VerifyData(const ByteArrayPtr&, const ByteArrayPtr&, const HashAlgorithmName&) method

Verifies that the signature of the specified data is valid.

bool System::Security::Cryptography::DSA::VerifyData(const ByteArrayPtr &data, const ByteArrayPtr &signature, const HashAlgorithmName &hash_algorithm)
ParameterTypeDescription
dataconst ByteArrayPtr&Signed data.
signatureconst ByteArrayPtr&Signature data.
hash_algorithmconst HashAlgorithmName&Hash algorithm. return true if signature is valid, otherwise - false.

See Also

DSACryptoServiceProvider::VerifyData(const ByteArrayPtr&, int32_t, int32_t, const ByteArrayPtr&, const HashAlgorithmName&) method

Verifies that the signature of the specified data is valid.

bool System::Security::Cryptography::DSA::VerifyData(const ByteArrayPtr &data, int32_t offset, int32_t count, const ByteArrayPtr &signature, const HashAlgorithmName &hash_algorithm)
ParameterTypeDescription
dataconst ByteArrayPtr&Signed data.
offsetint32_tOffset in data.
countint32_tNumber of bytes to hash.
signatureconst ByteArrayPtr&Signature data.
hash_algorithmconst HashAlgorithmName&Hash algorithm. return true if signature is valid, otherwise - false.

See Also

DSACryptoServiceProvider::VerifyData(const StreamPtr&, const ByteArrayPtr&, const HashAlgorithmName&) method

Verifies that the signature of the specified binary stream is valid.

bool System::Security::Cryptography::DSA::VerifyData(const StreamPtr &stream, const ByteArrayPtr &signature, const HashAlgorithmName &hash_algorithm)
ParameterTypeDescription
streamconst StreamPtr&Signed data.
signatureconst ByteArrayPtr&Signature data.
hash_algorithmconst HashAlgorithmName&Hash algorithm. return true if signature is valid, otherwise - false.

See Also