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.
ECDsa::VerifyData Method (Stream^, array<Byte>^, HashAlgorithmName)
Verifies that a digital signature is valid by calculating the hash value of the specified stream using the specified hash algorithm and comparing it to the provided signature.
Assembly: System.Core (in System.Core.dll)
public: bool VerifyData( Stream^ data, array<unsigned char>^ signature, HashAlgorithmName hashAlgorithm )
Parameters
- data
-
Type:
System.IO::Stream^
The signed data.
- signature
-
Type:
array<System::Byte>^
The signature data to be verified.
- hashAlgorithm
-
Type:
System.Security.Cryptography::HashAlgorithmName
The hash algorithm used to create the hash value of the data.
| Exception | Condition |
|---|---|
| ArgumentNullException | data is null. -or- signature is null. |
| ArgumentException | hashAlgorithm.Name is null or String::Empty. |
.NET Framework
Available since 4.6.1
Available since 4.6.1
Show: