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>^, Int32, Int32, array<Byte>^)

 

Verifies a signature for the specified length of data, beginning at the specified offset.

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

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

Parameters

data
Type: array<System::Byte>^

The data that was signed.

offset
Type: System::Int32

The location in the data at which the signed data begins.

count
Type: System::Int32

The length of the data, in characters, following offset that will be 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
ArgumentOutOfRangeException

offset or count is less then zero.

-or-

offset or count is larger than the length of the byte array passed in the data parameter.

ArgumentNullException

data or signature is null.

This method hashes the input data by using the HashAlgorithm property before verification.

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