CreateHmacCryptoSha384 Method
Definition
- Namespace
- Cuemon.Security.Cryptography
- Assemblies
- Cuemon.Security.Cryptography.dll
CreateHmacCryptoSha384(byte[], Action<ConvertibleOptions>)
Creates an instance of HmacSecureHashAlgorithm384.
public static Hash CreateHmacCryptoSha384(byte[] secret, Action<ConvertibleOptions> setup = null)
Parameters
secretbyte[]The secret key for HmacSecureHashAlgorithm384 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.
setupAction<ConvertibleOptions>The ConvertibleOptions which may be configured.
Returns
- Hash
A Hash implementation of HmacSecureHashAlgorithm384.
Exceptions
- ArgumentNullException
secretcannot be null.