Table of Contents

SecureHashAlgorithm384 Class

Definition

Namespace
Cuemon.Security.Cryptography
Assemblies
Cuemon.Security.Cryptography.dll
Source
src/Cuemon.Security.Cryptography/SecureHashAlgorithm384.cs

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

Name Description
SecureHashAlgorithm384(Action<ConvertibleOptions>)

Initializes a new instance of the SecureHashAlgorithm384 class.

Fields

Name Description
BitSize

Produces a 384-bit hash value

See Also

UnkeyedCryptoHash<TAlgorithm>
Hash<TOptions>