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

KeyExchangeDiffieHellman

Represents base class for Diffie Hellman key exchange algorithm
protected byte[] _clientExchangeValue

Specifies client exchange number.

protected byte[] _clientPayload

Specifies client payload

protected BigInteger _group

Specifies key exchange group number.

protected byte[] _hostKey

Specifies host key data.

protected BigInteger _prime

Specifies key exchange prime number.

Specifies random generated number.

protected byte[] _serverExchangeValue

Specifies server exchange number.

protected byte[] _serverPayload

Specifies server payload

protected byte[] _signature

Specifies signature data.

protected abstract int HashSize { get; }

Gets the size, in bits, of the computed hash code.

protected virtual void HandleServerDhReply(byte[] hostKey, byte[] serverExchangeValue, byte[] signature)

Handles the server DH reply message.

protected void PopulateClientExchangeValue()

Populates the client exchange value.