Table of Contents

Class HmacSecureHashAlgorithm512

Namespace
Cuemon.Security.Cryptography
Assembly
Cuemon.Security.Cryptography.dll

Provides a Hash-based Message Authentication Code (HMAC) by using the SHA512 hash function. This class cannot be inherited. Implements the KeyedCryptoHash<TAlgorithm>

public sealed class HmacSecureHashAlgorithm512 : KeyedCryptoHash<HMACSHA512>, IHash, IConfigurable<ConvertibleOptions>
Inheritance
HmacSecureHashAlgorithm512
Implements
Inherited Members

Constructors

HmacSecureHashAlgorithm512(Byte[], Action<ConvertibleOptions>)

Initializes a new instance of the HmacSecureHashAlgorithm512 class.

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

Parameters

secret Byte[]

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

setup Action<ConvertibleOptions>

The ConvertibleOptions which need to be configured.

See Also

Hash<TOptions>