aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/utils/encrypt_block.cpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-12-28 03:26:46 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-12-28 03:26:46 +0300
commit6fe0f155b0a0daa5affe1482da50cbe152358b07 (patch)
treea305e26159bcb266c02cd8e9f9292bad839bda79 /utils/encrypt_block.cpp
parentutils: refactoring (diff)
downloadaes-tools-6fe0f155b0a0daa5affe1482da50cbe152358b07.tar.gz
aes-tools-6fe0f155b0a0daa5affe1482da50cbe152358b07.zip
utils: interface update & refactoring
Diffstat (limited to 'utils/encrypt_block.cpp')
-rw-r--r--utils/encrypt_block.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/encrypt_block.cpp b/utils/encrypt_block.cpp
index 724e8c1..98fdec6 100644
--- a/utils/encrypt_block.cpp
+++ b/utils/encrypt_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;
}
}