aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/utils/encrypt_block.cpp
diff options
context:
space:
mode:
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;
}
}