<PackageReference Include="SSH.NET" Version="2024.0.0" />

HMACSHA384

public class HMACSHA384 : HMACSHA384
Computes a Hash-based Message Authentication Code (HMAC) by using the SHA384 hash function.
using Renci.SshNet.Common; using System.Security.Cryptography; namespace Renci.SshNet.Security.Cryptography { public class HMACSHA384 : System.Security.Cryptography.HMACSHA384 { private readonly int _hashSize; public override int HashSize => _hashSize; public HMACSHA384(byte[] key) : base(key) { _hashSize = base.HashSize; } public HMACSHA384(byte[] key, int hashSize) : base(key) { _hashSize = hashSize; } protected override byte[] HashFinal() { return base.HashFinal().Take(HashSize / 8); } } }