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

 

Verifies the digital signature of the specified data stream, reading to the end of the stream.

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

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

Parameters

data
Type: System.IO::Stream^

The data stream 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 hashes the input data by using the HashAlgorithm property before verification.

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