File: diffie_hellman_group_exchange_sha256.rb

package info (click to toggle)
ruby-net-ssh 1%3A6.1.0-2%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,884 kB
  • sloc: ruby: 15,997; makefile: 4
file content (11 lines) | stat: -rw-r--r-- 350 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
require 'net/ssh/transport/kex/diffie_hellman_group_exchange_sha1'

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