RSACryptoServiceProvider.SignData Method (Byte[], Object)
Silverlight
Computes the hash value of the specified byte array using the specified hash algorithm, and signs the resulting hash value.
Namespace: System.Security.Cryptography
Assembly: mscorlib.Extensions (in mscorlib.Extensions.dll)
Parameters
- buffer
- Type: System.Byte[]
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. |
This method creates a digital signature that is verified using the VerifyData method.
The halg parameter can accept a String, a HashAlgorithm, or a Type.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.