diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-12-28 03:26:46 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-12-28 03:26:46 +0300 |
commit | 6fe0f155b0a0daa5affe1482da50cbe152358b07 (patch) | |
tree | a305e26159bcb266c02cd8e9f9292bad839bda79 /utils/decrypt_block.cpp | |
parent | utils: refactoring (diff) | |
download | aes-tools-6fe0f155b0a0daa5affe1482da50cbe152358b07.tar.gz aes-tools-6fe0f155b0a0daa5affe1482da50cbe152358b07.zip |
utils: interface update & refactoring
Diffstat (limited to 'utils/decrypt_block.cpp')
-rw-r--r-- | utils/decrypt_block.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/decrypt_block.cpp b/utils/decrypt_block.cpp index a8c9625..456ef6c 100644 --- a/utils/decrypt_block.cpp +++ b/utils/decrypt_block.cpp @@ -8,6 +8,7 @@ #include "block_cmd_parser.hpp" #include "block_dumper.hpp" +#include "block_input.hpp" #include <aesnixx/all.hpp> @@ -15,7 +16,7 @@ #include <exception> #include <iostream> -#include <iterator> +#include <stdexcept> #include <string> namespace @@ -92,7 +93,7 @@ namespace break; default: - throw_not_implemented(mode); + throw std::runtime_error("the selected mode of operation is not implemented"); break; } } @@ -118,7 +119,7 @@ namespace break; default: - throw_not_implemented(algorithm); + throw std::runtime_error("the selected algorithm is not implemented"); break; } } |