Class: HMAC::SHA256
- 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) ⇒ SHA256
Returns a new instance of SHA256.
6
7
8
|
# File 'lib/extensions/hmac/hmac-sha2.rb', line 6
def initialize(key = nil)
super(Digest::SHA256, 64, 32, key)
end
|