Class: Net::SSH::Transport::Kex::DiffieHellmanGroupExchangeSHA256

Inherits:
DiffieHellmanGroupExchangeSHA1 show all
Defined in:
lib/net/ssh/transport/kex/diffie_hellman_group_exchange_sha256.rb

Overview

A key-exchange service implementing the “diffie-hellman-group-exchange-sha256” key-exchange algorithm.

Constant Summary

Constants inherited from DiffieHellmanGroupExchangeSHA1

Net::SSH::Transport::Kex::DiffieHellmanGroupExchangeSHA1::KEXDH_GEX_GROUP, Net::SSH::Transport::Kex::DiffieHellmanGroupExchangeSHA1::KEXDH_GEX_INIT, Net::SSH::Transport::Kex::DiffieHellmanGroupExchangeSHA1::KEXDH_GEX_REPLY, Net::SSH::Transport::Kex::DiffieHellmanGroupExchangeSHA1::KEXDH_GEX_REQUEST, Net::SSH::Transport::Kex::DiffieHellmanGroupExchangeSHA1::MAXIMUM_BITS, Net::SSH::Transport::Kex::DiffieHellmanGroupExchangeSHA1::MINIMUM_BITS

Constants inherited from DiffieHellmanGroup1SHA1

Net::SSH::Transport::Kex::DiffieHellmanGroup1SHA1::G, Net::SSH::Transport::Kex::DiffieHellmanGroup1SHA1::P_r, Net::SSH::Transport::Kex::DiffieHellmanGroup1SHA1::P_s

Constants included from Constants

Constants::DEBUG, Constants::DISCONNECT, Constants::IGNORE, Constants::KEXDH_INIT, Constants::KEXDH_REPLY, Constants::KEXINIT, Constants::NEWKEYS, Constants::SERVICE_ACCEPT, Constants::SERVICE_REQUEST, Constants::UNIMPLEMENTED

Instance Attribute Summary

Attributes inherited from DiffieHellmanGroup1SHA1

#algorithms, #connection, #data, #dh, #digester, #g, #p

Attributes included from Loggable

#logger

Instance Method Summary collapse

Methods inherited from DiffieHellmanGroup1SHA1

#exchange_keys

Methods included from Loggable

#debug, #error, #fatal, #info, #lwarn

Constructor Details

#initialize(*args) ⇒ DiffieHellmanGroupExchangeSHA256

Returns a new instance of DiffieHellmanGroupExchangeSHA256.



8
9
10
11
12
# File 'lib/net/ssh/transport/kex/diffie_hellman_group_exchange_sha256.rb', line 8

def initialize(*args)
  super(*args)

  @digester = OpenSSL::Digest::SHA256
end