Class: Ccrypto::KeyConfig

Inherits:
Object
  • Object
show all
Includes:
AlgoConfig
Defined in:
lib/ccrypto/configs/key_config.rb

Instance Attribute Summary collapse

Attributes included from AlgoConfig

#provider_config

Class Method Summary collapse

Instance Method Summary collapse

Methods included from AlgoConfig

include, #provider_info

Instance Attribute Details

#algoObject

Returns the value of attribute algo.



7
8
9
# File 'lib/ccrypto/configs/key_config.rb', line 7

def algo
  @algo
end

#keysizeObject

Returns the value of attribute keysize.



7
8
9
# File 'lib/ccrypto/configs/key_config.rb', line 7

def keysize
  @keysize
end

Class Method Details

.supported_secret_key_config(&block) ⇒ Object



13
14
15
# File 'lib/ccrypto/configs/key_config.rb', line 13

def self.supported_secret_key_config(&block)
  Provider.instance.provider.supported_secret_key_config(&block)
end

Instance Method Details

#to_sObject



9
10
11
# File 'lib/ccrypto/configs/key_config.rb', line 9

def to_s
  "#{@algo}/#{@keysize}"
end