SecurityServices for .NET 2.0 Documentation

HMACConstructor(HashAlgorithm)

[This is preliminary documentation and subject to change.]

Initializes a new instance of the HMAC class. This class cannot be inherited.

publicHMAC(
HashAlgorithmhash
);

Parameters

HashAlgorithm
The underlying hash algorithm to use.

Remarks

A random key will be generated and used by the HMAC.

Exceptions

Exception Type Condition
ArgumentNullException hash is a null reference (Nothing in Visual Basic).

See Also

HMAC Class | Org.Mentalis.SecurityServices.Cryptography Namespace | HMAC Constructor Overload List