From 1be5109d775697065d234a70b948de52e55efbd6 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 25 Jun 2015 01:10:53 +0300 Subject: cxx: implement more stuff --- utils/block/cxx/aes_common.hpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'utils/block') diff --git a/utils/block/cxx/aes_common.hpp b/utils/block/cxx/aes_common.hpp index 78126e5..cd5d669 100644 --- a/utils/block/cxx/aes_common.hpp +++ b/utils/block/cxx/aes_common.hpp @@ -8,7 +8,7 @@ #pragma once -#include +#include #include #include @@ -22,7 +22,7 @@ #include #include -static std::istream& operator>>(std::istream& is, AesNI_Mode& 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_Mode& dest) return is; } -static std::istream& operator>>(std::istream& is, AesNI_Algorithm& 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(&m_mode)->required(), "set mode of operation") - ("algorithm,a", po::value(&m_algorithm)->required(), "set algorithm"); + ("mode,m", po::value(&m_mode)->required(), "set mode of operation") + ("algorithm,a", po::value(&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_Mode get_mode() const + aesni::Mode get_mode() const { return m_mode; } - AesNI_Algorithm 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_Mode m_mode; - AesNI_Algorithm m_algorithm; + aesni::Mode m_mode; + aesni::Algorithm m_algorithm; std::vector m_args; }; } -- cgit v1.2.3