Class: Ccrypto::HKDFConfig

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

Instance Attribute Summary collapse

Attributes inherited from KDFConfig

#algo

Instance Method Summary collapse

Methods included from AlgoConfig

include

Constructor Details

#initializeHKDFConfig

Returns a new instance of HKDFConfig.



57
58
59
60
61
# File 'lib/ccrypto/configs/kdf_config.rb', line 57

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

Instance Attribute Details

#digestObject

Returns the value of attribute digest.



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

def digest
  @digest
end

#infoObject

Returns the value of attribute info.



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

def info
  @info
end

#outBitLengthObject

Returns the value of attribute outBitLength.



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

def outBitLength
  @outBitLength
end

#provider_configObject

Returns the value of attribute provider_config.



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

def provider_config
  @provider_config
end

#saltObject

Returns the value of attribute salt.



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

def salt
  @salt
end