VerifySignature()

DSASignatureDeformatter::VerifySignature(ArrayPtr<uint8_t>, ArrayPtr<uint8_t>) method

Verifies the DSA signature of the specified hash.

bool System::Security::Cryptography::DSASignatureDeformatter::VerifySignature(ArrayPtr<uint8_t> rgbHash, ArrayPtr<uint8_t> rgbSignature) override

Arguments

ParameterTypeDescription
rgbHashArrayPtr<uint8_t>Hash of the signed data.
rgbSignatureArrayPtr<uint8_t>Signature to verify.

Return Value

True if the signature is valid, false otherwise.

Exceptions

ExceptionDescription
ArgumentNullExceptionIf rgbHash or rgbSignature is null.
CryptographicUnexpectedOperationExceptionIf the key is not set.

See Also