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

Renci.SshNet.Security.IKeyExchange

public interface IKeyExchange : IDisposable
byte[] ExchangeHash { get; }

string Name { get; }

Cipher CreateClientCipher(out bool isAead)

HashAlgorithm CreateClientHash(out bool isEncryptThenMAC)

Cipher CreateServerCipher(out bool isAead)

HashAlgorithm CreateServerHash(out bool isEncryptThenMAC)

void Finish()

void Start(Session session, KeyExchangeInitMessage message, bool sendClientInitMessage)