Sha256: 16560c66da561dea5369fbf77bb87eccd98cd05f15a86f63db0dd4f1b37a1fc2

Contents?: true

Size: 1.31 KB

Versions: 15

Compression:

Stored size: 1.31 KB

Contents

require 'net/ssh/transport/kex/diffie_hellman_group1_sha1'
require 'net/ssh/transport/kex/diffie_hellman_group14_sha1'
require 'net/ssh/transport/kex/diffie_hellman_group_exchange_sha1'
require 'net/ssh/transport/kex/diffie_hellman_group_exchange_sha256'
require 'net/ssh/transport/kex/ecdh_sha2_nistp256'
require 'net/ssh/transport/kex/ecdh_sha2_nistp384'
require 'net/ssh/transport/kex/ecdh_sha2_nistp521'
require 'net/ssh/transport/kex/curve25519_sha256_loader'

module Net::SSH::Transport
  module Kex
    # Maps the supported key-exchange algorithms as named by the SSH protocol
    # to their corresponding implementors.
    MAP = {
      'diffie-hellman-group1-sha1'           => DiffieHellmanGroup1SHA1,
      'diffie-hellman-group14-sha1'          => DiffieHellmanGroup14SHA1,
      'diffie-hellman-group-exchange-sha1'   => DiffieHellmanGroupExchangeSHA1,
      'diffie-hellman-group-exchange-sha256' => DiffieHellmanGroupExchangeSHA256,
      'ecdh-sha2-nistp256'                   => EcdhSHA2NistP256,
      'ecdh-sha2-nistp384'                   => EcdhSHA2NistP384,
      'ecdh-sha2-nistp521'                   => EcdhSHA2NistP521
    }

    if Net::SSH::Transport::Kex::Curve25519Sha256Loader::LOADED
      MAP['curve25519-sha256'] = Curve25519Sha256
      MAP['curve25519-sha256@libssh.org'] = Curve25519Sha256
    end
  end
end

Version data entries

15 entries across 14 versions & 2 rubygems

Version Path
vagrant-unbundled-2.2.19.0 vendor/bundle/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/kex.rb
vagrant-unbundled-2.2.18.0 vendor/bundle/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/kex.rb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/2.7.0/gems/net-ssh-6.2.0.rc1/lib/net/ssh/transport/kex.rb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/kex.rb
net-ssh-6.2.0.rc2 lib/net/ssh/transport/kex.rb
vagrant-unbundled-2.2.14.0 vendor/bundle/ruby/2.7.0/gems/net-ssh-6.2.0.rc1/lib/net/ssh/transport/kex.rb
vagrant-unbundled-2.2.10.0 vendor/bundle/ruby/2.7.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/kex.rb
net-ssh-6.2.0.rc1 lib/net/ssh/transport/kex.rb
net-ssh-6.2.0.beta1 lib/net/ssh/transport/kex.rb
net-ssh-6.1.0 lib/net/ssh/transport/kex.rb
net-ssh-6.1.0.rc1 lib/net/ssh/transport/kex.rb
net-ssh-6.0.2 lib/net/ssh/transport/kex.rb
net-ssh-6.0.1 lib/net/ssh/transport/kex.rb
net-ssh-6.0.0 lib/net/ssh/transport/kex.rb
net-ssh-6.0.0.rc1 lib/net/ssh/transport/kex.rb