Class: Ccrypto::HKDFConfig

Inherits:
KDFConfig show all
Defined in:
lib/ccrypto/configs/kdf_config.rb

Instance Attribute Summary collapse

Attributes inherited from KDFConfig

#algo, #outBitLength

Attributes included from AlgoConfig

#provider_config

Instance Method Summary collapse

Methods included from AlgoConfig

include, #provider_info

Constructor Details

#initializeHKDFConfig

Returns a new instance of HKDFConfig.



53
54
55
56
# File 'lib/ccrypto/configs/kdf_config.rb', line 53

def initialize
  @salt = SecureRandom.random_bytes(16)
  @digest = :sha256
end

Instance Attribute Details

#digestObject

Returns the value of attribute digest.



52
53
54
# File 'lib/ccrypto/configs/kdf_config.rb', line 52

def digest
  @digest
end

#infoObject

Returns the value of attribute info.



52
53
54
# File 'lib/ccrypto/configs/kdf_config.rb', line 52

def info
  @info
end

#saltObject

Returns the value of attribute salt.



52
53
54
# File 'lib/ccrypto/configs/kdf_config.rb', line 52

def salt
  @salt
end