RSACryptoServiceProvider.SignData Method (Stream, Object)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Computes the hash value of the specified input stream using the specified hash algorithm, and signs the resulting hash value.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- inputStream
- Type: System.IO.Stream
The input data for which to compute the hash.
- halg
- Type: System.Object
The hash algorithm to use to create the hash value.
| Exception | Condition |
|---|---|
| ArgumentNullException | The halg parameter is null. |
| ArgumentException | The halg parameter is not a valid type. |
The halg parameter can accept a String, a HashAlgorithm, or a Type.
Show: