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

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

Syntax

Visual Basic
Public Sub New ( _
	algorithm As HashingAlgorithmId _
)
C#
public HMAC(
	HashingAlgorithmId algorithm
)

Parameters

algorithm
Type: Rebex.Security.Cryptography..::..HashingAlgorithmId
A type of hash algorithm to use.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also