SecurityServices for .NET 2.0 Documentation

HMAC Constructor (HashAlgorithm)

[This is preliminary documentation and subject to change.]

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

public HMAC(
   HashAlgorithm hash
);

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