Click or drag to resize

RSACryptoServiceProviderSignData(Byte, Int32, Int32, Object) Method

Computes the hash value of a subset of the specified byte array using the specified hash algorithm, and signs the resulting hash value.

Namespace: Crestron.SimplSharp.Cryptography
Assembly: SimplSharpCryptographyInterface (in SimplSharpCryptographyInterface.dll) Version: 2.21.121
Syntax
C#
public byte[] SignData(
	byte[] buffer,
	int offset,
	int count,
	Object halg
)

Parameters

buffer  Byte
The input data for which to compute the hash.
offset  Int32
The offset into the array from which to begin using data.
count  Int32
The number of bytes in the array to use as data.
halg  Object
The hash algorithm to use to create the hash value.

Return Value

Byte
The Crestron.SimplSharp.Cryptography.RSA signature for the specified data.
Exceptions
ExceptionCondition
ArgumentNullExceptionThe halg parameter is null.
ArgumentExceptionThe halg parameter is not a valid type.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also