lib/symmetric_encryption/keystore/file.rb in symmetric-encryption-4.1.1 vs lib/symmetric_encryption/keystore/file.rb in symmetric-encryption-4.1.2

- old
+ new

@@ -4,10 +4,10 @@ attr_accessor :file_name, :key_encrypting_key # Returns [Hash] a new keystore configuration after generating the data key. # # Increments the supplied version number by 1. - def self.generate_data_key(key_path:, cipher_name:, app_name:, environment:, version: 0, dek: nil) + def self.generate_data_key(key_path:, cipher_name:, app_name:, environment:, version: 0, dek: nil, **args) version >= 255 ? (version = 1) : (version += 1) dek ||= SymmetricEncryption::Key.new(cipher_name: cipher_name) kek = SymmetricEncryption::Key.new(cipher_name: cipher_name) kekek = SymmetricEncryption::Key.new(cipher_name: cipher_name)