Class: HMAC::SHA1
Instance Method Summary collapse
-
#initialize(key = nil) ⇒ SHA1
constructor
A new instance of SHA1.
Methods inherited from Base
#digest, #hexdigest, #reset_key, #set_key, #to_s, #update
Constructor Details
#initialize(key = nil) ⇒ SHA1
Returns a new instance of SHA1.
6 7 8 |
# File 'lib/hmac/sha1.rb', line 6 def initialize(key = nil) super(Digest::SHA1, 64, 20, key) end |