Class SecureHashAlgorithm384
- Namespace
- Cuemon.Security.Cryptography
- Assembly
- Cuemon.Security.Cryptography.dll
Provides a SHA-384 implementation of the SHA (Secure Hash Algorithm) cryptographic hashing algorithm for 384-bit hash values. This class cannot be inherited. Implements the UnkeyedCryptoHash<TAlgorithm>
public sealed class SecureHashAlgorithm384 : UnkeyedCryptoHash<SHA384>, IHash, IConfigurable<ConvertibleOptions>
- Inheritance
-
SecureHashAlgorithm384
- Implements
- Inherited Members
Examples
The following example demonstrates how to compute a SHA-384 hash with
using System;
using System.Text;
using Cuemon.Security.Cryptography;
namespace MyApp.Examples;
public static class SecureHashAlgorithm384Example
{
public static void Demonstrate()
{
var algorithm = new SecureHashAlgorithm384();
var result = algorithm.ComputeHash(Encoding.UTF8.GetBytes("Payload for SHA-384"));
Console.WriteLine(SecureHashAlgorithm384.BitSize);
Console.WriteLine(result.GetBytes().Length);
}
}
Constructors
SecureHashAlgorithm384(Action<ConvertibleOptions>)
Initializes a new instance of the SecureHashAlgorithm384 class.
public SecureHashAlgorithm384(Action<ConvertibleOptions> setup = null)
Parameters
setupAction<ConvertibleOptions>The ConvertibleOptions which may be configured.
Fields
BitSize
Produces a 384-bit hash value
public const int BitSize = 384
Field Value
See Also
UnkeyedCryptoHash<TAlgorithm>
Hash<TOptions>