File: chacha20_poly1305_cipher_loader.rb

package info (click to toggle)
ruby-net-ssh 1%3A7.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,804 kB
  • sloc: ruby: 16,999; makefile: 5
file content (17 lines) | stat: -rw-r--r-- 406 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module Net
  module SSH
    module Transport
      # Loads chacha20 poly1305 support which requires optinal dependency rbnacl
      module ChaCha20Poly1305CipherLoader
        begin
          require 'net/ssh/transport/chacha20_poly1305_cipher'
          LOADED = true
          ERROR = nil
        rescue LoadError => e
          ERROR = e
          LOADED = false
        end
      end
    end
  end
end