lib/ccrypto/configs/key_config.rb in ccrypto-0.1.3 vs lib/ccrypto/configs/key_config.rb in ccrypto-0.2.0
- old
+ new
@@ -2,10 +2,17 @@
module Ccrypto
class KeyConfig
include AlgoConfig
- attr_accessor :algo, :keysize
+ attr_reader :algo, :keysize
+
+ attr_accessor :provider_config
+
+ def initialize(algo, keysize)
+ @algo = algo
+ @keysize = keysize
+ end
def to_s
"#{@algo}/#{@keysize}"
end