aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/utils/data_parsers.hpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-05-19 04:48:59 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-05-19 04:48:59 +0300
commitf0393777befc4ff1024513dab3ab6bad0e7ec45f (patch)
tree97571103c522ff60f96a8fdde35a0bbee9532837 /utils/data_parsers.hpp
parentrename the project (diff)
downloadaes-tools-f0393777befc4ff1024513dab3ab6bad0e7ec45f.tar.gz
aes-tools-f0393777befc4ff1024513dab3ab6bad0e7ec45f.zip
'aesni' -> 'aes'
Diffstat (limited to 'utils/data_parsers.hpp')
-rw-r--r--utils/data_parsers.hpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/utils/data_parsers.hpp b/utils/data_parsers.hpp
index d081659..815a499 100644
--- a/utils/data_parsers.hpp
+++ b/utils/data_parsers.hpp
@@ -17,20 +17,20 @@
#include <map>
#include <string>
-static std::istream& operator>>(std::istream& is, aesni::Mode& dest)
+static std::istream& operator>>(std::istream& is, aes::Mode& dest)
{
static const char* const argument_name = "mode";
std::string src;
is >> src;
- static std::map<std::string, aesni::Mode> lookup_table =
+ static std::map<std::string, aes::Mode> lookup_table =
{
- { "ecb", AESNI_ECB },
- { "cbc", AESNI_CBC },
- { "cfb", AESNI_CFB },
- { "ofb", AESNI_OFB },
- { "ctr", AESNI_CTR },
+ { "ecb", AES_ECB },
+ { "cbc", AES_CBC },
+ { "cfb", AES_CFB },
+ { "ofb", AES_OFB },
+ { "ctr", AES_CTR },
};
const auto it = lookup_table.find(boost::algorithm::to_lower_copy(src));
@@ -42,18 +42,18 @@ static std::istream& operator>>(std::istream& is, aesni::Mode& dest)
return is;
}
-static std::istream& operator>>(std::istream& is, aesni::Algorithm& dest)
+static std::istream& operator>>(std::istream& is, aes::Algorithm& dest)
{
static const char* const argument_name = "algorithm";
std::string src;
is >> src;
- static std::map<std::string, aesni::Algorithm> lookup_table =
+ static std::map<std::string, aes::Algorithm> lookup_table =
{
- { "aes128", AESNI_AES128 },
- { "aes192", AESNI_AES192 },
- { "aes256", AESNI_AES256 },
+ { "aes128", AES_AES128 },
+ { "aes192", AES_AES192 },
+ { "aes256", AES_AES256 },
};
const auto it = lookup_table.find(boost::algorithm::to_lower_copy(src));