aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/aes_common.hpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/aes_common.hpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/aes_common.hpp b/test/aes_common.hpp
index 08b92f4..78126e5 100644
--- a/test/aes_common.hpp
+++ b/test/aes_common.hpp
@@ -22,7 +22,7 @@
#include <string>
#include <vector>
-static std::istream& operator>>(std::istream& is, AesNI_BoxMode& dest)
+static std::istream& operator>>(std::istream& is, AesNI_Mode& dest)
{
std::string src;
is >> src;
@@ -43,7 +43,7 @@ static std::istream& operator>>(std::istream& is, AesNI_BoxMode& dest)
return is;
}
-static std::istream& operator>>(std::istream& is, AesNI_BoxAlgorithm& dest)
+static std::istream& operator>>(std::istream& is, AesNI_Algorithm& dest)
{
std::string src;
is >> src;
@@ -76,8 +76,8 @@ namespace
m_options.add_options()
("help,h", "show this message and exit")
- ("mode,m", po::value<AesNI_BoxMode>(&m_mode)->required(), "set mode of operation")
- ("algorithm,a", po::value<AesNI_BoxAlgorithm>(&m_algorithm)->required(), "set algorithm");
+ ("mode,m", po::value<AesNI_Mode>(&m_mode)->required(), "set mode of operation")
+ ("algorithm,a", po::value<AesNI_Algorithm>(&m_algorithm)->required(), "set algorithm");
po::options_description hidden_options;
hidden_options.add_options()
@@ -108,12 +108,12 @@ namespace
std::cout << m_options << "\n";
}
- AesNI_BoxMode get_mode() const
+ AesNI_Mode get_mode() const
{
return m_mode;
}
- AesNI_BoxAlgorithm get_algorithm() const
+ AesNI_Algorithm get_algorithm() const
{
return m_algorithm;
}
@@ -127,8 +127,8 @@ namespace
const std::string m_program_name;
boost::program_options::options_description m_options;
- AesNI_BoxMode m_mode;
- AesNI_BoxAlgorithm m_algorithm;
+ AesNI_Mode m_mode;
+ AesNI_Algorithm m_algorithm;
std::vector<std::string> m_args;
};
}