/usr/lib/ruby/vendor_ruby/net/ssh/transport/hmac/sha2_256.rb is in ruby-net-ssh 1:2.5.2-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | require 'net/ssh/transport/hmac/abstract'
if defined?(OpenSSL::Digest::SHA256) # need openssl support
module Net::SSH::Transport::HMAC
# The SHA-256 HMAC algorithm. This has a mac and key length of 32, and
# uses the SHA-256 digest algorithm.
class SHA2_256 < Abstract
mac_length 32
key_length 32
digest_class OpenSSL::Digest::SHA256
end
end
end
|