Initializes a new instance of the HMAC class. This class cannot be inherited.
[Visual Basic]
Overloads Public Sub New( _
ByVal hash As HashAlgorithm _
)
A random key will be generated and use by the HMAC.
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