HMAC Constructor
Namespace: Rebex.Security.Cryptography
Assembly: Rebex.Common.dll (version 7.0.9448)
HMAC(HashingAlgorithmId, Byte[])
Initializes a new instance of the HMAC class with the specified hash algorithm and key data.
Declaration
public HMAC(HashingAlgorithmId algorithm, byte[] rgbKey)
Parameters
| Type | Name | Description |
|---|---|---|
| HashingAlgorithmId | algorithm | A type of hash algorithm to use. |
| Byte[] | rgbKey | The secret key for HMAC encryption. |
HMAC(HashingAlgorithmId)
Initializes a new instance of the HMAC class with the specified hash algorithm and a randomly generated key.
Declaration
public HMAC(HashingAlgorithmId algorithm)
Parameters
| Type | Name | Description |
|---|---|---|
| HashingAlgorithmId | algorithm | A type of hash algorithm to use. |