Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ECDsaCng::VerifyData Method (array<Byte>^, array<Byte>^)

 

Verifies the digital signature of the specified data.

Namespace:   System.Security.Cryptography
Assembly:  System.Core (in System.Core.dll)

public:
bool VerifyData(
	array<unsigned char>^ data,
	array<unsigned char>^ signature
)

Parameters

data
Type: array<System::Byte>^

The data that was signed.

signature
Type: array<System::Byte>^

The signature to be verified.

Return Value

Type: System::Boolean

true if the signature is valid; otherwise, false.

Exception Condition
ArgumentNullException

data or signature is null.

This method generates a signature for the given data by hashing the input data using the HashAlgorithm property, and then signing the result.

.NET Framework
Available since 3.5
Return to top
Show:
© 2017 Microsoft