Commit cc50af5

mokha <mo@mokhan.ca>
2018-11-26 05:47:35
rename parameter to private_key
1 parent 3b4dbc3
Changed files (1)
lib
lib/xml/kit/decryption.rb
@@ -63,8 +63,8 @@ module Xml
         raise DecryptionError, private_keys
       end
 
-      def to_plaintext(cipher_text, symmetric_key, algorithm)
-        cipher_registry.cipher_for(algorithm, symmetric_key).decrypt(cipher_text)
+      def to_plaintext(cipher_text, private_key, algorithm)
+        cipher_registry.cipher_for(algorithm, private_key).decrypt(cipher_text)
       end
     end
   end