Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

RSACryptoServiceProvider.SignData Method (Stream, Object)

Computes the hash value of the specified input stream using the specified hash algorithm, and signs the resulting hash value.

Namespace:  System.Security.Cryptography
Assembly:  mscorlib.Extensions (in mscorlib.Extensions.dll)
public byte[] SignData(
	Stream inputStream,
	Object halg


Type: System.IO.Stream
The input data for which to compute the hash.
Type: System.Object
The hash algorithm to use to create the hash value.

Return Value

Type: System.Byte[]
The RSA signature for the specified data.

The halg parameter is null.


The halg parameter is not a valid type.

The halg parameter can accept a String, a HashAlgorithm, or a Type.

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.