Initializes a new instance of the
HMAC class.
Namespace: LLCryptoLib.Security.CryptographyAssembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)
Syntax
C# |
---|
public HMAC(
HashAlgorithm hash,
byte[] rgbKey
) |
Visual Basic |
---|
Public Sub New ( _
hash As HashAlgorithm, _
rgbKey As Byte() _
) |
Visual C++ |
---|
public:
HMAC(
HashAlgorithm^ hash,
array<unsigned char>^ rgbKey
) |
Parameters
- hash
- Type: System.Security.Cryptography..::..HashAlgorithm
The underlying hash algorithm to use.
- rgbKey
- Type: array<System..::..Byte>[]()[][]
The key to use for the HMAC -or- a null reference (Nothing in Visual Basic).
Remarks
Exceptions
Exception | Condition |
---|
System..::..ArgumentNullException | hash is a null reference (Nothing in Visual Basic). |
See Also