Table of Contents

HmacSecureHashAlgorithm256 Constructor

Definition

Namespace
Cuemon.Security.Cryptography
Assemblies
Cuemon.Security.Cryptography.dll
Source
src/Cuemon.Security.Cryptography/HmacSecureHashAlgorithm256.cs

HmacSecureHashAlgorithm256(byte[], Action<ConvertibleOptions>)

Initializes a new instance of the HmacSecureHashAlgorithm256 class.

public HmacSecureHashAlgorithm256(byte[] secret, Action<ConvertibleOptions> setup)

Parameters

secret byte[]

The secret key for HmacSecureHashAlgorithm256 encryption. The key can be any length. However, the recommended size is 64 bytes. If the key is more than 64 bytes long, it is hashed (using SHA-256) to derive a 64-byte key. If it is less than 64 bytes long, it is padded to 64 bytes.

setup Action<ConvertibleOptions>

The ConvertibleOptions which need to be configured.