<PackageReference Include="SSH.NET" Version="2016.0.0-beta1" />

KeyExchangeDiffieHellmanGroupExchangeSha256

Represents "diffie-hellman-group-exchange-sha256" algorithm implementation.
using Renci.SshNet.Security.Cryptography; using System.Security.Cryptography; namespace Renci.SshNet.Security { public class KeyExchangeDiffieHellmanGroupExchangeSha256 : KeyExchangeDiffieHellmanGroupExchangeShaBase { public override string Name => "diffie-hellman-group-exchange-sha256"; protected override byte[] Hash(byte[] hashBytes) { using (SHA256 sHA = HashAlgorithmFactory.CreateSHA256()) return sHA.ComputeHash(hashBytes); } } }