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

Renci.SshNet.Security.IKeyExchange

public interface IKeyExchange : IDisposable
Represents a key exchange algorithm.
namespace Renci.SshNet.Security { public interface IKeyExchange : IDisposable { string Name { get; } byte[] ExchangeHash { get; } event EventHandler<HostKeyEventArgs> HostKeyReceived; void Start(Session session, KeyExchangeInitMessage message, bool sendClientInitMessage); void Finish(); Cipher CreateClientCipher(out bool isAead); Cipher CreateServerCipher(out bool isAead); HashAlgorithm CreateServerHash(out bool isEncryptThenMAC); HashAlgorithm CreateClientHash(out bool isEncryptThenMAC); Compressor CreateCompressor(); Compressor CreateDecompressor(); } }