Initializes a new instance of the HMAC class.
[Visual Basic]
Overloads Public Sub New( _
ByVal hash As HashAlgorithm, _
ByVal rgbKey As Byte() _
)
If rgbKey is a null reference, the HMAC class will generate a random key.
| Exception Type | Condition | 
|---|---|
| ArgumentNullException | hash is a null reference (Nothing in Visual Basic). | 
HMAC Class | HMAC Members | Org.Mentalis.Security.Cryptography Namespace | HMAC Constructor Overload List