Table of Contents

Class HmacMessageDigest5

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

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

public sealed class HmacMessageDigest5 : KeyedCryptoHash<HMACMD5>, IHash, IConfigurable<ConvertibleOptions>
Inheritance
Object
HmacMessageDigest5
Implements
Inherited Members

Constructors

HmacMessageDigest5(Byte[], Action<ConvertibleOptions>)

Initializes a new instance of the HmacMessageDigest5 class.

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

Parameters

secret Byte[]

The secret key for HmacMessageDigest5 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>