using Renci.SshNet.Abstractions; namespace Renci.SshNet.Security { /// /// Represents "diffie-hellman-group-exchange-sha256" algorithm implementation. /// public class KeyExchangeDiffieHellmanGroupExchangeSha256 : KeyExchangeDiffieHellmanGroupExchangeShaBase { /// /// Gets algorithm name. /// public override string Name { get { return "diffie-hellman-group-exchange-sha256"; } } /// /// Hashes the specified data bytes. /// /// Data to hash. /// /// Hashed bytes /// protected override byte[] Hash(byte[] hashBytes) { using (var sha256 = CryptoAbstraction.CreateSHA256()) { return sha256.ComputeHash(hashBytes); } } } }