Module: Net::SSH::Transport::ChaCha20Poly1305CipherLoader
- Defined in:
- lib/net/ssh/transport/chacha20_poly1305_cipher_loader.rb
Overview
Loads chacha20-poly1305 support backed by Ruby OpenSSL APIs.
Class Method Summary collapse
Class Method Details
.chacha20_poly1305_support_required ⇒ Object
30 31 32 |
# File 'lib/net/ssh/transport/chacha20_poly1305_cipher_loader.rb', line 30 def self.chacha20_poly1305_support_required "net-ssh requires openssl >= 3.2.0 and a crypto backend with ChaCha20 and Poly1305 enabled for chacha20-poly1305@openssh.com support.\n" end |
.raiseUnlessLoaded(message) ⇒ Object
24 25 26 27 28 |
# File 'lib/net/ssh/transport/chacha20_poly1305_cipher_loader.rb', line 24 def self.raiseUnlessLoaded() description = LOADED ? '' : chacha20_poly1305_support_required description += "#{ERROR.class} : \"#{ERROR.}\"\n" if ERROR raise NotImplementedError, "#{}\n#{description}" unless LOADED end |