2012-06-29 05:18:28 +00:00
|
|
|
# -*- coding: binary -*-
|
2010-02-16 19:18:19 +00:00
|
|
|
require 'net/ssh/transport/hmac/abstract'
|
|
|
|
|
|
|
|
module Net::SSH::Transport::HMAC
|
|
|
|
|
|
|
|
# The SHA1 HMAC algorithm. This has a mac and key length of 20, and
|
|
|
|
# uses the SHA1 digest algorithm.
|
|
|
|
class SHA1 < Abstract
|
|
|
|
mac_length 20
|
|
|
|
key_length 20
|
|
|
|
digest_class OpenSSL::Digest::SHA1
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|