Initializes a new instance of the HMAC class with the specified hash algorithm and key data.

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

Syntax

Visual Basic
Public Sub New ( _
	algorithm As HashingAlgorithmId, _
	rgbKey As Byte() _
)
C#
public HMAC(
	HashingAlgorithmId algorithm,
	byte[] rgbKey
)

Parameters

algorithm
Type: Rebex.Security.Cryptography..::..HashingAlgorithmId
A type of hash algorithm to use.
rgbKey
Type: array<System..::..Byte>[]()[][]
The secret key for HMAC encryption.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also