ECDsaCng::VerifyData Method (array<Byte>^, Int32, Int32, array<Byte>^)
Verifies a signature for the specified length of data, beginning at the specified offset.
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.
| 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.
Available since 3.5