aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cxx/include/aesxx/mode.hpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2017-05-04 03:03:47 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2017-05-04 03:03:47 +0300
commit8fae13fe2c6bd341cbd0081d2e7140509b23c692 (patch)
tree8e6617215e8182eda8b0d3df769f785797eadfeb /cxx/include/aesxx/mode.hpp
parentdisable DbgHelp.h warnings (diff)
downloadaes-tools-8fae13fe2c6bd341cbd0081d2e7140509b23c692.tar.gz
aes-tools-8fae13fe2c6bd341cbd0081d2e7140509b23c692.zip
refactoring
Diffstat (limited to '')
-rw-r--r--cxx/include/aesxx/mode.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cxx/include/aesxx/mode.hpp b/cxx/include/aesxx/mode.hpp
index b6f3192..1c6c4cf 100644
--- a/cxx/include/aesxx/mode.hpp
+++ b/cxx/include/aesxx/mode.hpp
@@ -14,18 +14,18 @@ namespace aes
typedef AES_Mode Mode;
template <Mode mode>
- struct ModeRequiresInitializationVector : public std::true_type
+ struct ModeRequiresInitVector : public std::true_type
{ };
template <>
- struct ModeRequiresInitializationVector<AES_ECB> : public std::false_type
+ struct ModeRequiresInitVector<AES_ECB> : public std::false_type
{ };
template <Mode mode>
struct ModeUsesEncryptionKeysOnly : public std::true_type
{ };
- inline bool mode_requires_initialization_vector(Mode mode)
+ inline bool mode_requires_init_vector(Mode mode)
{
return mode != AES_ECB;
}