Class: Ccrypto::X25519Config

Inherits:
KeypairConfig show all
Defined in:
lib/ccrypto/configs/keypair_config.rb

Overview

X25519 for key exchange

Constant Summary

Constants inherited from KeypairConfig

KeypairConfig::Algo_Active, KeypairConfig::Algo_Broken, KeypairConfig::Algo_NotRecommended, KeypairConfig::Algo_Obsolete

Instance Attribute Summary

Attributes inherited from KeypairConfig

#algo, #algo_status, #default, #keypair, #private_key, #provider_config, #public_key

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from KeypairConfig

#has_keypair?, #has_private_key?, #has_public_key?, #is_default_algo?, keypair_purposes, supported_keypair_config

Methods included from AlgoConfig

include

Constructor Details

#initializeX25519Config

Returns a new instance of X25519Config.



155
156
157
158
# File 'lib/ccrypto/configs/keypair_config.rb', line 155

def initialize
  @algo = self.class.algo_key
  super(Algo_Active, true)
end

Class Method Details

.algo_keyObject



151
152
153
# File 'lib/ccrypto/configs/keypair_config.rb', line 151

def self.algo_key
  :x25519
end

.algo_nameObject



147
148
149
# File 'lib/ccrypto/configs/keypair_config.rb', line 147

def self.algo_name
  "X25519 (Data Encipherment only)"
end

Instance Method Details

#paramObject



160
161
162
# File 'lib/ccrypto/configs/keypair_config.rb', line 160

def param
  nil
end