module Net::SSH::Transport::Kex::Curve25519Sha256Loader

Loads Curve25519Sha256 support which requires optinal dependencies

Constants

ERROR
LOADED

Public Class Methods

dependenciesRequiredForX25519() click to toggle source
# File lib/net/ssh/transport/kex/curve25519_sha256_loader.rb, line 22
def self.dependenciesRequiredForX25519
  result = "net-ssh requires the following gems for x25519 support:\n"
  result << " * x25519\n"
end
raiseUnlessLoaded(message) click to toggle source
# File lib/net/ssh/transport/kex/curve25519_sha256_loader.rb, line 16
def self.raiseUnlessLoaded(message)
  description = ERROR.is_a?(LoadError) ? dependenciesRequiredForX25519 : ''
  description << "#{ERROR.class} : \"#{ERROR.message}\"\n" if ERROR
  raise NotImplementedError, "#{message}\n#{description}" unless LOADED
end