RSAPKCS1SignatureFormatter.CreateSignature Method (array<Byte[])
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Creates the RSA PKCS #1 signature for the specified data.
Namespace: System.Security.Cryptography
Assembly: mscorlib.Extensions (in mscorlib.Extensions.dll)
Syntax
'Declaration
<SecuritySafeCriticalAttribute> _
Public Overrides Function CreateSignature ( _
rgbHash As Byte() _
) As Byte()
[SecuritySafeCriticalAttribute]
public override byte[] CreateSignature(
byte[] rgbHash
)
Parameters
- rgbHash
Type: array<System.Byte[]
The data to be signed.
Return Value
Type: array<System.Byte[]
The digital signature for rgbHash.
Exceptions
Exception | Condition |
---|---|
CryptographicUnexpectedOperationException | The key is nulla null reference (Nothing in Visual Basic). -or- The hash algorithm is nulla null reference (Nothing in Visual Basic). |
ArgumentNullException | The rgbHash parameter is nulla null reference (Nothing in Visual Basic). |
Remarks
You must specify a key and a hash algorithm before calling this method.
Version Information
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
See Also