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

module Net::SSH::Transport::HMAC
  # The SHA-512 Encrypt-Then-Mac HMAC algorithm. This has a mac and
  # key length of 64, and uses the SHA-512 digest algorithm.
  class SHA2_512_Etm < Abstract
    etm          true
    mac_length   64
    key_length   64
    digest_class OpenSSL::Digest::SHA512
  end
end