Class HmacSecureHashAlgorithm256
- Namespace
- Cuemon.Security.Cryptography
- Assembly
- Cuemon.Security.Cryptography.dll
Provides a Hash-based Message Authentication Code (HMAC) by using the SHA256 hash function. This class cannot be inherited. Implements the KeyedCryptoHash<TAlgorithm>
public sealed class HmacSecureHashAlgorithm256 : KeyedCryptoHash<HMACSHA256>, IHash, IConfigurable<ConvertibleOptions>
- Inheritance
-
HmacSecureHashAlgorithm256
- Implements
- Inherited Members
Constructors
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.
See Also
Hash<TOptions>