Method: Fog::HMAC#initialize

Defined in:
lib/fog/core/hmac.rb

#initialize(type, key) ⇒ HMAC

Returns a new instance of HMAC.



4
5
6
7
8
9
10
11
12
# File 'lib/fog/core/hmac.rb', line 4

def initialize(type, key)
  @key = key
  case type
  when 'sha1'
    setup_sha1
  when 'sha256'
    setup_sha256
  end
end