lib/symmetric_encryption/keystore/environment.rb in symmetric-encryption-4.3.0 vs lib/symmetric_encryption/keystore/environment.rb in symmetric-encryption-4.3.1
- old
+ new
@@ -5,10 +5,10 @@
attr_accessor :key_env_var, :encoding
# Returns [Hash] a new keystore configuration after generating the data key.
#
# Increments the supplied version number by 1.
- def self.generate_data_key(cipher_name:, app_name:, environment:, version: 0, dek: nil, **args)
+ def self.generate_data_key(cipher_name:, app_name:, environment:, version: 0, dek: nil, **_args)
version >= 255 ? (version = 1) : (version += 1)
kek = SymmetricEncryption::Key.new(cipher_name: cipher_name)
dek ||= SymmetricEncryption::Key.new(cipher_name: cipher_name)