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

KeyExchangeDiffieHellmanGroupSha1

Represents "diffie-hellman-group1-sha1" algorithm implementation.
using Renci.SshNet.Abstractions; using SshNet.Security.Cryptography; namespace Renci.SshNet.Security { internal abstract class KeyExchangeDiffieHellmanGroupSha1 : KeyExchangeDiffieHellmanGroupShaBase { protected override int HashSize => 160; protected override byte[] Hash(byte[] hashData) { using (SHA1 sHA = CryptoAbstraction.CreateSHA1()) return sHA.ComputeHash(hashData, 0, hashData.Length); } } }