File: diffie_hellman_group14_sha256.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 (11 lines) | stat: -rw-r--r-- 324 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
require 'net/ssh/transport/kex/diffie_hellman_group14_sha1'

module Net::SSH::Transport::Kex
  # A key-exchange service implementing the "diffie-hellman-group14-sha256"
  # key-exchange algorithm.
  class DiffieHellmanGroup14SHA256 < DiffieHellmanGroup14SHA1
    def digester
      OpenSSL::Digest::SHA256
    end
  end
end