Class: HMAC::SHA512

Inherits:
Base show all
Defined in:
lib/extensions/hmac/hmac-sha2.rb

Instance Method Summary collapse

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/extensions/hmac/hmac-sha2.rb', line 20

def initialize(key = nil)
  super(Digest::SHA512, 128, 64, key)
end