Information
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.

RSAPKCS1SignatureFormatter.CreateSignature Method (Byte[])

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Creates the RSA PKCS #1 signature for the specified data.

Namespace:  System.Security.Cryptography
Assembly:  mscorlib (in mscorlib.dll)

public override byte[] CreateSignature(
	byte[] rgbHash
)

Parameters

rgbHash
Type: System.Byte []
The data to be signed.

Return Value

Type: System.Byte []
The digital signature for rgbHash.

ExceptionCondition
CryptographicUnexpectedOperationException

The key is null.

-or-

The hash algorithm is null.

ArgumentNullException

The rgbHash parameter is null.

You must specify a key and a hash algorithm before calling this method.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show: