aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/utils/file_cmd_parser.hpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-05-19 04:48:59 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-05-19 04:48:59 +0300
commitf0393777befc4ff1024513dab3ab6bad0e7ec45f (patch)
tree97571103c522ff60f96a8fdde35a0bbee9532837 /utils/file_cmd_parser.hpp
parentrename the project (diff)
downloadaes-tools-f0393777befc4ff1024513dab3ab6bad0e7ec45f.tar.gz
aes-tools-f0393777befc4ff1024513dab3ab6bad0e7ec45f.zip
'aesni' -> 'aes'
Diffstat (limited to 'utils/file_cmd_parser.hpp')
-rw-r--r--utils/file_cmd_parser.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/utils/file_cmd_parser.hpp b/utils/file_cmd_parser.hpp
index c8061fa..c59e05d 100644
--- a/utils/file_cmd_parser.hpp
+++ b/utils/file_cmd_parser.hpp
@@ -28,8 +28,8 @@ namespace
public:
Settings() = default;
- aesni::Mode get_mode() const { return mode; }
- aesni::Algorithm get_algorithm() const { return algorithm; }
+ aes::Mode get_mode() const { return mode; }
+ aes::Algorithm get_algorithm() const { return algorithm; }
const std::string& get_input_path() const { return input_path; }
const std::string& get_output_path() const { return output_path; }
@@ -38,8 +38,8 @@ namespace
const std::string& get_iv_string() const { return iv; }
private:
- aesni::Mode mode;
- aesni::Algorithm algorithm;
+ aes::Mode mode;
+ aes::Algorithm algorithm;
std::string input_path;
std::string output_path;
@@ -63,8 +63,8 @@ namespace
options.add_options()
("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")
+ ("mode,m", po::value<aes::Mode>(&settings.mode)->required(), "set mode of operation")
+ ("algorithm,a", po::value<aes::Algorithm>(&settings.algorithm)->required(), "set algorithm")
("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")
@@ -81,7 +81,7 @@ namespace
po::notify(vm);
- if (aesni::mode_requires_initialization_vector(settings.get_mode()))
+ if (aes::mode_requires_initialization_vector(settings.get_mode()))
{
if (!vm.count("iv"))
{