aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/utils/data_parsers.hpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2017-05-04 04:08:15 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2017-05-04 04:08:15 +0300
commit188460a91bd37ca6f18fb89e448819b642953be7 (patch)
tree12fa7b29fa207240fe8ddf19d70f5a5333bf1233 /utils/data_parsers.hpp
parentrefactoring (diff)
downloadaes-tools-188460a91bd37ca6f18fb89e448819b642953be7.tar.gz
aes-tools-188460a91bd37ca6f18fb89e448819b642953be7.zip
code style & refactoring
Diffstat (limited to 'utils/data_parsers.hpp')
-rw-r--r--utils/data_parsers.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/data_parsers.hpp b/utils/data_parsers.hpp
index 33c766a..e4f0ae2 100644
--- a/utils/data_parsers.hpp
+++ b/utils/data_parsers.hpp
@@ -11,15 +11,15 @@
#include <boost/program_options.hpp>
#include <istream>
-#include <map>
#include <string>
+#include <unordered_map>
static std::istream& operator>>(std::istream& is, aes::Mode& dest)
{
std::string src;
is >> src;
- static std::map<std::string, aes::Mode> lookup_table =
+ static const std::unordered_map<std::string, aes::Mode> lookup_table =
{
{"ecb", AES_ECB},
{"cbc", AES_CBC},
@@ -42,7 +42,7 @@ static std::istream& operator>>(std::istream& is, aes::Algorithm& dest)
std::string src;
is >> src;
- static std::map<std::string, aes::Algorithm> lookup_table =
+ static const std::unordered_map<std::string, aes::Algorithm> lookup_table =
{
{"aes128", AES_AES128},
{"aes192", AES_AES192},