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.



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

def initialize
  @algo = :hkdf
  @salt = SecureRandom.random_bytes(16)
  @digest = :sha3_256
end

Instance Attribute Details

#digestObject

Returns the value of attribute digest.



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

def digest
  @digest
end

#infoObject

Returns the value of attribute info.



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

def info
  @info
end

#saltObject

Returns the value of attribute salt.



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

def salt
  @salt
end