Table of Contents

Class HmacSecureHashAlgorithm1

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

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

public sealed class HmacSecureHashAlgorithm1 : KeyedCryptoHash<HMACSHA1>, IHash, IConfigurable<ConvertibleOptions>
Inheritance
HmacSecureHashAlgorithm1
Implements
Inherited Members

Constructors

HmacSecureHashAlgorithm1(Byte[], Action<ConvertibleOptions>)

Initializes a new instance of the HmacSecureHashAlgorithm1 class.

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

Parameters

secret Byte[]

The secret key for HmacSecureHashAlgorithm1 encryption. The key can be any length, but if it is more than 64 bytes long it will be hashed (using SHA-1) to derive a 64-byte key. Therefore, the recommended size of the secret key is 64 bytes.

setup Action<ConvertibleOptions>

The ConvertibleOptions which need to be configured.

See Also

Hash<TOptions>