lib/xml/kit/crypto/oaep_cipher.rb in xml-kit-0.1.11 vs lib/xml/kit/crypto/oaep_cipher.rb in xml-kit-0.1.12
- old
+ new
@@ -1,12 +1,14 @@
+# frozen_string_literal: true
+
module Xml
module Kit
module Crypto
class OaepCipher
ALGORITHMS = {
'http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p' => true,
- }
- def initialize(algorithm, key)
+ }.freeze
+ def initialize(_algorithm, key)
@key = key
end
def self.matches?(algorithm)
ALGORITHMS[algorithm]