aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/decrypt_bmp.cpp4
-rw-r--r--utils/decrypt_file.cpp4
-rw-r--r--utils/encrypt_bmp.cpp4
-rw-r--r--utils/encrypt_file.cpp4
-rw-r--r--utils/file_cmd_parser.hpp4
5 files changed, 10 insertions, 10 deletions
diff --git a/utils/decrypt_bmp.cpp b/utils/decrypt_bmp.cpp
index e63155d..dac042a 100644
--- a/utils/decrypt_bmp.cpp
+++ b/utils/decrypt_bmp.cpp
@@ -88,8 +88,8 @@ namespace
const auto algorithm = settings.get_algorithm();
const auto mode = settings.get_mode();
- const auto ciphertext_path = settings.get_input_path();
- const auto plaintext_path = settings.get_output_path();
+ const auto& ciphertext_path = settings.get_input_path();
+ const auto& plaintext_path = settings.get_output_path();
aesni::Box::Key key;
aesni::Box::parse_key(key, algorithm, settings.get_key_string());
diff --git a/utils/decrypt_file.cpp b/utils/decrypt_file.cpp
index 2264926..dd95928 100644
--- a/utils/decrypt_file.cpp
+++ b/utils/decrypt_file.cpp
@@ -73,8 +73,8 @@ namespace
const auto algorithm = settings.get_algorithm();
const auto mode = settings.get_mode();
- const auto ciphertext_path = settings.get_input_path();
- const auto plaintext_path = settings.get_output_path();
+ const auto& ciphertext_path = settings.get_input_path();
+ const auto& plaintext_path = settings.get_output_path();
aesni::Box::Key key;
aesni::Box::parse_key(key, algorithm, settings.get_key_string());
diff --git a/utils/encrypt_bmp.cpp b/utils/encrypt_bmp.cpp
index 3ac5906..2dc3ea5 100644
--- a/utils/encrypt_bmp.cpp
+++ b/utils/encrypt_bmp.cpp
@@ -88,8 +88,8 @@ namespace
const auto algorithm = settings.get_algorithm();
const auto mode = settings.get_mode();
- const auto plaintext_path = settings.get_input_path();
- const auto ciphertext_path = settings.get_output_path();
+ const auto& plaintext_path = settings.get_input_path();
+ const auto& ciphertext_path = settings.get_output_path();
aesni::Box::Key key;
aesni::Box::parse_key(key, algorithm, settings.get_key_string());
diff --git a/utils/encrypt_file.cpp b/utils/encrypt_file.cpp
index 4651928..bde7d83 100644
--- a/utils/encrypt_file.cpp
+++ b/utils/encrypt_file.cpp
@@ -73,8 +73,8 @@ namespace
const auto algorithm = settings.get_algorithm();
const auto mode = settings.get_mode();
- const auto plaintext_path = settings.get_input_path();
- const auto ciphertext_path = settings.get_output_path();
+ const auto& plaintext_path = settings.get_input_path();
+ const auto& ciphertext_path = settings.get_output_path();
aesni::Box::Key key;
aesni::Box::parse_key(key, algorithm, settings.get_key_string());
diff --git a/utils/file_cmd_parser.hpp b/utils/file_cmd_parser.hpp
index b6312f3..bc641ed 100644
--- a/utils/file_cmd_parser.hpp
+++ b/utils/file_cmd_parser.hpp
@@ -65,8 +65,8 @@ namespace
("help,h", "show this message and exit")
("mode,m", po::value<aesni::Mode>(&settings.mode)->required(), "set mode of operation")
("algorithm,a", po::value<aesni::Algorithm>(&settings.algorithm)->required(), "set algorithm")
- ("input-path,i", po::value<std::string>(&settings.input_path)->required(), "set input file")
- ("output-path,o", po::value<std::string>(&settings.output_path)->required(), "set output file")
+ ("input-path,i", po::value<std::string>(&settings.input_path)->required(), "set input file path")
+ ("output-path,o", po::value<std::string>(&settings.output_path)->required(), "set output file path")
("key,k", po::value<std::string>(&settings.key)->required(), "set encryption key")
("iv,v", po::value<std::string>(&settings.iv), "set initialization vector");