class RuboCop::Cop::Lint::DeprecatedOpenSSLConstant
def build_cipher_arguments(node, algorithm_name, no_arguments)
def build_cipher_arguments(node, algorithm_name, no_arguments) algorithm_parts = algorithm_name.downcase.split('-') size_and_mode = sanitize_arguments(node.arguments).map(&:downcase) if NO_ARG_ALGORITHM.include?(algorithm_parts.first.upcase) && no_arguments "'#{algorithm_parts.first}'" else mode = 'cbc' unless size_and_mode == ['cbc'] "'#{(algorithm_parts + size_and_mode + [mode]).compact.take(3).join('-')}'" end end