diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-22 19:24:27 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-22 19:29:28 +0200 |
| commit | fe12cdce3fa13d490852e7f389015a1958a6f2c6 (patch) | |
| tree | 0802935a5fd6f494cc57d66c8a7282185267c12d /aesxx/utils/decrypt_bmp.cpp | |
| parent | aesxx/utils: more refactoring (diff) | |
| download | aes-tools-fe12cdce3fa13d490852e7f389015a1958a6f2c6.tar.gz aes-tools-fe12cdce3fa13d490852e7f389015a1958a6f2c6.zip | |
aesxx/utils: some more basic refactoring
Diffstat (limited to '')
| -rw-r--r-- | aesxx/utils/decrypt_bmp.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/aesxx/utils/decrypt_bmp.cpp b/aesxx/utils/decrypt_bmp.cpp index d805c62..84286ef 100644 --- a/aesxx/utils/decrypt_bmp.cpp +++ b/aesxx/utils/decrypt_bmp.cpp @@ -31,21 +31,21 @@ void decrypt_bmp( } void decrypt_bmp(const FileSettings& settings) { - const auto& algorithm = settings.algorithm; - const auto& mode = settings.mode; + const auto algorithm = settings.get_algorithm(); + const auto mode = settings.get_mode(); aes::Box::Key key; - aes::Box::parse_key(key, algorithm, settings.key); + aes::Box::parse_key(key, algorithm, settings.get_key()); if (aes::mode_requires_init_vector(mode)) { aes::Box::Block iv; - aes::Box::parse_block(iv, algorithm, settings.iv); + aes::Box::parse_block(iv, algorithm, settings.get_iv()); aes::Box box{algorithm, key, mode, iv}; - decrypt_bmp(box, settings.input_path, settings.output_path); + decrypt_bmp(box, settings.get_input_path(), settings.get_output_path()); } else { aes::Box box{algorithm, key}; - decrypt_bmp(box, settings.input_path, settings.output_path); + decrypt_bmp(box, settings.get_input_path(), settings.get_output_path()); } } @@ -62,7 +62,7 @@ int main(int argc, char** argv) { return 1; } - if (settings.exit_with_usage) { + if (settings.exit_with_usage()) { settings.usage(); return 0; } |
