File: none.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 (13 lines) | stat: -rw-r--r-- 245 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
require 'net/ssh/transport/hmac/abstract'

module Net::SSH::Transport::HMAC
  # The "none" algorithm. This has a key and mac length of 0.
  class None < Abstract
    key_length 0
    mac_length 0

    def digest(data)
      ""
    end
  end
end