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.
-
#outBitLength ⇒ Object
Returns the value of attribute outBitLength.
-
#provider_config ⇒ Object
Returns the value of attribute provider_config.
-
#salt ⇒ Object
Returns the value of attribute salt.
Attributes inherited from KDFConfig
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.
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
#digest ⇒ Object
Returns the value of attribute digest.
54 55 56 |
# File 'lib/ccrypto/configs/kdf_config.rb', line 54 def digest @digest end |
#info ⇒ Object
Returns the value of attribute info.
55 56 57 |
# File 'lib/ccrypto/configs/kdf_config.rb', line 55 def info @info end |
#outBitLength ⇒ Object
Returns the value of attribute outBitLength.
54 55 56 |
# File 'lib/ccrypto/configs/kdf_config.rb', line 54 def outBitLength @outBitLength end |
#provider_config ⇒ Object
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 |
#salt ⇒ Object
Returns the value of attribute salt.
54 55 56 |
# File 'lib/ccrypto/configs/kdf_config.rb', line 54 def salt @salt end |