Module: Net::SSH::Transport::Kex::Curve25519Sha256Loader
- Defined in:
- lib/net/ssh/transport/kex/curve25519_sha256_loader.rb
Overview
Loads Curve25519Sha256 support backed by Ruby OpenSSL X25519 APIs.
Class Method Summary collapse
Class Method Details
.raiseUnlessLoaded(message) ⇒ Object
25 26 27 28 29 |
# File 'lib/net/ssh/transport/kex/curve25519_sha256_loader.rb', line 25 def self.raiseUnlessLoaded() description = LOADED ? '' : x25519SupportRequired description += "#{ERROR.class} : \"#{ERROR.}\"\n" if ERROR raise NotImplementedError, "#{}\n#{description}" unless LOADED end |
.x25519SupportRequired ⇒ Object
31 32 33 |
# File 'lib/net/ssh/transport/kex/curve25519_sha256_loader.rb', line 31 def self.x25519SupportRequired "net-ssh requires openssl >= 3.2.0 and a crypto backend with X25519 enabled for curve25519-sha256 support.\n" end |