Commit a43ca5c

mo <mo.khan@gmail.com>
2018-12-02 21:48:20
downcase algorithm
1 parent 6bfc95a
Changed files (1)
spec
spec/xml/kit/crypto/symmetric_cipher_spec.rb
@@ -9,7 +9,7 @@ RSpec.describe ::Xml::Kit::Crypto::SymmetricCipher do
   ].each do |(algorithm, bit_length)|
     describe algorithm do
       let(:xml_algorithm) { "#{::Xml::Kit::Namespaces::XMLENC}#{algorithm}" }
-      let(:openssl_algorithm) { Xml::Kit::Crypto::SymmetricCipher::ALGORITHMS[xml_algorithm] }
+      let(:openssl_algorithm) { Xml::Kit::Crypto::SymmetricCipher::ALGORITHMS[xml_algorithm].downcase }
       let(:bytes_length) { bit_length / 8 }
       let(:key) { SecureRandom.random_bytes(bytes_length) }
       let(:iv) { SecureRandom.random_bytes(bytes_length) }