lib/ccrypto/ruby/keybundle_store/pem_store.rb in ccrypto-ruby-0.1.0 vs lib/ccrypto/ruby/keybundle_store/pem_store.rb in ccrypto-ruby-0.1.1

- old
+ new

@@ -32,11 +32,11 @@ # If not the library will prompt at command prompt which might halt the flow of program pKey = OpenSSL::PKey.read(input,"") ECCKeyBundle.new(pKey) rescue OpenSSL::PKey::PKeyError => ex raise PEMStoreException, "block is required" if not block - pass = block.call(:pem_pass) + pass = block.call(:store_pass) begin pKey = OpenSSL::PKey.read(input, pass) ECCKeyBundle.new(pKey) rescue OpenSSL::PKey::PKeyError => exx raise PEMStoreException, exx @@ -49,11 +49,11 @@ klass.extend(ClassMethods) end def to_pem(&block) raise PEMStoreException, "Block is required" if not block - kcipher = block.call(:pem_cipher) - kpass = block.call(:pem_pass) + kcipher = block.call(:store_cipher) + kpass = block.call(:store_pass) kcipher = "AES-256-GCM" if is_empty?(kcipher) keypair = block.call(:keypair) raise PEMStoreException, "Keypair is required" if is_empty?(keypair)