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::SignData Method (array<Byte>^, HashAlgorithmName)
Computes the hash value of the specified byte array using the specified hash algorithm and signs the resulting hash value.
Assembly: System.Core (in System.Core.dll)
public: virtual array<unsigned char>^ SignData( array<unsigned char>^ data, HashAlgorithmName hashAlgorithm )
Parameters
- data
-
Type:
array<System::Byte>^
The input data for which to compute the hash.
- hashAlgorithm
-
Type:
System.Security.Cryptography::HashAlgorithmName
The hash algorithm to use to create the hash value.
| Exception | Condition |
|---|---|
| ArgumentNullException | data is null. |
| ArgumentException | hashAlgorithm.Name is null or String::Empty. |
.NET Framework
Available since 4.6.1
Available since 4.6.1
Show: