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

Namespace:  Rebex.Security.Cryptography
Assembly:  Rebex.Common (in Rebex.Common.dll)

Syntax

Visual Basic
Public Function SignData ( _
	buffer As Byte(), _
	halg As HashAlgorithm _
) As Byte()
C#
public byte[] SignData(
	byte[] buffer,
	HashAlgorithm halg
)

Parameters

buffer
Type: array<System..::..Byte>[]()[][]
The input data for which to compute the hash.
halg
Type: System.Security.Cryptography..::..HashAlgorithm
The hash algorithm to use to create the hash value.

Return Value

The RSA signature for the specified data.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also