From 6fe0f155b0a0daa5affe1482da50cbe152358b07 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 28 Dec 2015 03:26:46 +0300 Subject: utils: interface update & refactoring --- utils/encrypt_block.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'utils/encrypt_block.cpp') 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 @@ -15,7 +16,7 @@ #include #include -#include +#include #include 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; } } -- cgit v1.2.3