Class: Ccrypto::CrystalKyberConfig
- Inherits:
-
KeypairConfig
- Object
- KeypairConfig
- Ccrypto::CrystalKyberConfig
- Defined in:
- lib/ccrypto/configs/keypair_config.rb
Overview
PQ Crystal Kyber
Constant Summary
Constants inherited from KeypairConfig
KeypairConfig::Algo_Active, KeypairConfig::Algo_Broken, KeypairConfig::Algo_NotRecommended, KeypairConfig::Algo_Obsolete
Instance Attribute Summary collapse
-
#param ⇒ Object
readonly
Returns the value of attribute param.
Attributes inherited from KeypairConfig
#algo, #algo_status, #default, #keypair, #private_key, #provider_config, #public_key
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(kyberParam, default = false) ⇒ CrystalKyberConfig
constructor
A new instance of CrystalKyberConfig.
- #to_s ⇒ Object
Methods inherited from KeypairConfig
#has_keypair?, #has_private_key?, #has_public_key?, #is_default_algo?, keypair_purposes, supported_keypair_config
Methods included from AlgoConfig
Constructor Details
#initialize(kyberParam, default = false) ⇒ CrystalKyberConfig
Returns a new instance of CrystalKyberConfig.
175 176 177 178 179 |
# File 'lib/ccrypto/configs/keypair_config.rb', line 175 def initialize(kyberParam, default = false) @param = kyberParam @algo = self.class.algo_key super(Algo_Active, default) end |
Instance Attribute Details
#param ⇒ Object (readonly)
Returns the value of attribute param.
174 175 176 |
# File 'lib/ccrypto/configs/keypair_config.rb', line 174 def param @param end |
Class Method Details
.algo_key ⇒ Object
170 171 172 |
# File 'lib/ccrypto/configs/keypair_config.rb', line 170 def self.algo_key :crystal_kyber end |
.algo_name ⇒ Object
167 168 169 |
# File 'lib/ccrypto/configs/keypair_config.rb', line 167 def self.algo_name "Crystal Kyber (PQC - Signing)" end |
Instance Method Details
#to_s ⇒ Object
181 182 183 |
# File 'lib/ccrypto/configs/keypair_config.rb', line 181 def to_s "PQ Crystal Kyber #{@param}" end |