lib/ccrypto/ruby/engines/rsa_engine.rb in ccrypto-ruby-0.1.0 vs lib/ccrypto/ruby/engines/rsa_engine.rb in ccrypto-ruby-0.1.1
- old
+ new
@@ -202,9 +202,18 @@
end
@config.private_key.private_decrypt(enc, padVal)
end
+ def self.supported_keysizes
+ [
+ Ccrypto::RSAConfig.new(1024, Ccrypto::KeypairConfig::Algo_NotRecommended),
+ Ccrypto::RSAConfig.new(2048, Ccrypto::KeypairConfig::Algo_Active, true),
+ Ccrypto::RSAConfig.new(4096),
+ Ccrypto::RSAConfig.new(8192)
+ ]
+ end
+
#####################
## Private section ##
private