Method: HMAC::SHA1#initialize
- Defined in:
- lib/hmac-sha1.rb
#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 |
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 |