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