Class: Ccrypto::HKDFConfig
- Defined in:
- lib/ccrypto/configs/kdf_config.rb
Instance Attribute Summary collapse
-
#digest ⇒ Object
Returns the value of attribute digest.
-
#info ⇒ Object
Returns the value of attribute info.
-
#salt ⇒ Object
Returns the value of attribute salt.
Attributes inherited from KDFConfig
Attributes included from AlgoConfig
Instance Method Summary collapse
-
#initialize ⇒ HKDFConfig
constructor
A new instance of HKDFConfig.
Methods included from AlgoConfig
Constructor Details
#initialize ⇒ HKDFConfig
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
#digest ⇒ Object
Returns the value of attribute digest.
52 53 54 |
# File 'lib/ccrypto/configs/kdf_config.rb', line 52 def digest @digest end |
#info ⇒ Object
Returns the value of attribute info.
52 53 54 |
# File 'lib/ccrypto/configs/kdf_config.rb', line 52 def info @info end |
#salt ⇒ Object
Returns the value of attribute salt.
52 53 54 |
# File 'lib/ccrypto/configs/kdf_config.rb', line 52 def salt @salt end |