Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

HMAC Constructor

Namespace: Rebex.Security.Cryptography
Assembly: Rebex.Common.dll (version 7.0.9147)

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.

In This Article
  • HMAC(HashingAlgorithmId, Byte[])
  • HMAC(HashingAlgorithmId)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies