# File lib/net/ssh/test/kex.rb, line 27
    def exchange_keys
      result = Net::SSH::Buffer.from(:byte, NEWKEYS)
      @connection.send_message(result)

      buffer = @connection.next_message
      raise Net::SSH::Exception, "expected NEWKEYS" unless buffer.type == NEWKEYS

      { :session_id        => "abc-xyz",
        :server_key        => OpenSSL::PKey::RSA.new(32),
        :shared_secret     => OpenSSL::BN.new("1234567890", 10),
        :hashing_algorithm => OpenSSL::Digest::SHA1 }
    end