Click or drag to resize

RSACryptoServiceProviderSignHash Method

Computes the signature for the specified hash value by encrypting it with the private key.

Namespace: Crestron.SimplSharp.Cryptography
Assembly: SimplSharpCryptographyInterface (in SimplSharpCryptographyInterface.dll) Version: 2.21.121
Syntax
C#
public byte[] SignHash(
	byte[] rgbHash,
	string str
)

Parameters

rgbHash  Byte
The hash value of the data to be signed.
str  String
The hash algorithm identifier (OID) used to create the hash value of the data.

Return Value

Byte
Crestron.SimplSharp.Cryptography.RSA signature for the specified hash value.
Exceptions
ExceptionCondition
ArgumentNullExceptionThe rgbHash parameter is null.
CryptographicException The cryptographic service provider (CSP) cannot be acquired. -or- There is no private key.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also