lib/keepassx/aes_crypt.rb in keepassx-1.0.0 vs lib/keepassx/aes_crypt.rb in keepassx-1.1.0
- old
+ new
@@ -2,28 +2,28 @@
module Keepassx
module AESCrypt
module_function
- # rubocop:disable Naming/UncommunicativeMethodParamName
+ # rubocop:disable Naming/MethodParameterName
def decrypt(encrypted_data, key, iv, cipher_type)
aes = OpenSSL::Cipher.new(cipher_type)
aes.decrypt
aes.key = key
aes.iv = iv unless iv.nil?
aes.update(encrypted_data) + aes.final
end
- # rubocop:enable Naming/UncommunicativeMethodParamName
+ # rubocop:enable Naming/MethodParameterName
- # rubocop:disable Naming/UncommunicativeMethodParamName
+ # rubocop:disable Naming/MethodParameterName
def encrypt(data, key, iv, cipher_type)
aes = OpenSSL::Cipher.new(cipher_type)
aes.encrypt
aes.key = key
aes.iv = iv unless iv.nil?
aes.update(data) + aes.final
end
- # rubocop:enable Naming/UncommunicativeMethodParamName
+ # rubocop:enable Naming/MethodParameterName
end
end