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