Click or drag to resize

DSACryptoServiceProviderSignHash 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 name of the hash algorithm used to create the hash value of the data.

Return Value

Byte
Crestron.SimplSharp.Cryptography.DSA 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 Compact Framework

Supported in: 3.5
See Also