aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/utils/data_parsers.hpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-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},