lib/symmetric_encryption/keystore/memory.rb in symmetric-encryption-4.3.0 vs lib/symmetric_encryption/keystore/memory.rb in symmetric-encryption-4.3.1

- old
+ new

@@ -10,10 +10,10 @@ # Increments the supplied version number by 1. # # Notes: # * For development and testing purposes only!! # * Never store the encrypted encryption key in the source code / config file. - 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)