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