Class: Ccrypto::HMACConfig

Inherits:
Object
  • Object
show all
Includes:
AlgoConfig
Defined in:
lib/ccrypto/configs/hmac_config.rb

Instance Attribute Summary collapse

Attributes included from AlgoConfig

#provider_config

Instance Method Summary collapse

Methods included from AlgoConfig

include, #provider_info

Constructor Details

#initializeHMACConfig

Returns a new instance of HMACConfig.



9
10
11
# File 'lib/ccrypto/configs/hmac_config.rb', line 9

def initialize
  @digest = :sha256
end

Instance Attribute Details

#digestObject

Returns the value of attribute digest.



7
8
9
# File 'lib/ccrypto/configs/hmac_config.rb', line 7

def digest
  @digest
end

#keyObject

Returns the value of attribute key.



7
8
9
# File 'lib/ccrypto/configs/hmac_config.rb', line 7

def key
  @key
end