diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-22 19:11:55 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-22 19:14:21 +0200 |
| commit | fa252b5b08f2095318c6628413fa5859970aa2f4 (patch) | |
| tree | db6143daa2824133d1c6158141ead30e66e4099a /aesxx/utils/decrypt_block.cpp | |
| parent | aesxx: refactoring (diff) | |
| download | aes-tools-fa252b5b08f2095318c6628413fa5859970aa2f4.tar.gz aes-tools-fa252b5b08f2095318c6628413fa5859970aa2f4.zip | |
aesxx/utils: more refactoring
Diffstat (limited to 'aesxx/utils/decrypt_block.cpp')
| -rw-r--r-- | aesxx/utils/decrypt_block.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/aesxx/utils/decrypt_block.cpp b/aesxx/utils/decrypt_block.cpp index f6bd8a3..be5c003 100644 --- a/aesxx/utils/decrypt_block.cpp +++ b/aesxx/utils/decrypt_block.cpp @@ -161,11 +161,13 @@ int main(int argc, char** argv) { return 0; } - for (const auto& input : settings.inputs) { - if (settings.use_boxes) { - decrypt_using_boxes(settings.algorithm, settings.mode, input); + for (const auto& input : settings.get_inputs()) { + if (settings.use_boxes()) { + decrypt_using_boxes(settings.get_algorithm(), settings.get_mode(), input); } else { - decrypt_using_cxx_api(settings.algorithm, settings.mode, input, settings.verbose); + decrypt_using_cxx_api( + settings.get_algorithm(), settings.get_mode(), input, settings.verbose() + ); } } } catch (const aes::Error& e) { |
