Class: Ccrypto::RSAConfig
- Inherits:
-
KeypairConfig
- Object
- KeypairConfig
- Ccrypto::RSAConfig
- Defined in:
- lib/ccrypto/configs/keypair_config.rb
Instance Attribute Summary collapse
-
#keysize ⇒ Object
Returns the value of attribute keysize.
Attributes inherited from KeypairConfig
#algo, #keypair, #private_key, #public_key
Attributes included from AlgoConfig
Instance Method Summary collapse
-
#initialize(keysize = 2048) ⇒ RSAConfig
constructor
A new instance of RSAConfig.
- #to_s ⇒ Object
Methods inherited from KeypairConfig
#has_keypair?, #has_private_key?, #has_public_key?
Methods included from AlgoConfig
Constructor Details
#initialize(keysize = 2048) ⇒ RSAConfig
Returns a new instance of RSAConfig.
45 46 47 |
# File 'lib/ccrypto/configs/keypair_config.rb', line 45 def initialize(keysize = 2048) @keysize = keysize end |
Instance Attribute Details
#keysize ⇒ Object
Returns the value of attribute keysize.
44 45 46 |
# File 'lib/ccrypto/configs/keypair_config.rb', line 44 def keysize @keysize end |
Instance Method Details
#to_s ⇒ Object
49 50 51 |
# File 'lib/ccrypto/configs/keypair_config.rb', line 49 def to_s "RSA-#{keysize} bits" end |