aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/aesxx/utils/helpers/cmd_parser_file.hpp
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-22 19:24:27 +0200
committerEgor Tensin <egor@tensin.name>2026-06-22 19:29:28 +0200
commitfe12cdce3fa13d490852e7f389015a1958a6f2c6 (patch)
tree0802935a5fd6f494cc57d66c8a7282185267c12d /aesxx/utils/helpers/cmd_parser_file.hpp
parentaesxx/utils: more refactoring (diff)
downloadaes-tools-fe12cdce3fa13d490852e7f389015a1958a6f2c6.tar.gz
aes-tools-fe12cdce3fa13d490852e7f389015a1958a6f2c6.zip
aesxx/utils: some more basic refactoring
Diffstat (limited to 'aesxx/utils/helpers/cmd_parser_file.hpp')
-rw-r--r--aesxx/utils/helpers/cmd_parser_file.hpp42
1 files changed, 34 insertions, 8 deletions
diff --git a/aesxx/utils/helpers/cmd_parser_file.hpp b/aesxx/utils/helpers/cmd_parser_file.hpp
index fd6072a..81562f5 100644
--- a/aesxx/utils/helpers/cmd_parser_file.hpp
+++ b/aesxx/utils/helpers/cmd_parser_file.hpp
@@ -19,14 +19,6 @@
class FileSettings : public SettingsParser {
public:
- aes::Algorithm algorithm = AES_AES128;
- aes::Mode mode = AES_ECB;
-
- std::string input_path;
- std::string output_path;
- std::string key;
- std::string iv;
-
explicit FileSettings(std::string_view argv0) : SettingsParser{argv0} {
visible.add_options()(
"algorithm,a",
@@ -79,4 +71,38 @@ public:
};
}
}
+
+ aes::Algorithm get_algorithm() const {
+ return algorithm;
+ }
+
+ aes::Mode get_mode() const {
+ return mode;
+ }
+
+ std::string get_input_path() const {
+ return input_path;
+ }
+
+ std::string get_output_path() const {
+ return output_path;
+ }
+
+ std::string get_key() const {
+ return key;
+ }
+
+ std::string get_iv() const {
+ return iv;
+ }
+
+private:
+ aes::Algorithm algorithm;
+ aes::Mode mode;
+
+ std::string input_path;
+ std::string output_path;
+
+ std::string key;
+ std::string iv;
};