aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cxx/include/aesnixx
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-06-17 21:09:42 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-06-17 21:09:42 +0300
commit8430473494fcdbf39e02fcff80d51124df728e97 (patch)
treeba2a30c419e2d2e9fdd05ff697d98e24f1ef1876 /cxx/include/aesnixx
parentfactoring out AES-specific stuff (diff)
downloadaes-tools-8430473494fcdbf39e02fcff80d51124df728e97.tar.gz
aes-tools-8430473494fcdbf39e02fcff80d51124df728e97.zip
refactoring
Diffstat (limited to 'cxx/include/aesnixx')
-rw-r--r--cxx/include/aesnixx/data.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cxx/include/aesnixx/data.hpp b/cxx/include/aesnixx/data.hpp
index c667e94..e620915 100644
--- a/cxx/include/aesnixx/data.hpp
+++ b/cxx/include/aesnixx/data.hpp
@@ -28,9 +28,9 @@ namespace aesni
typedef AesNI_Aes256_RoundKeys KeySchedule256;
template <typename KeyScheduleT>
- inline std::size_t get_number_of_keys(const KeyScheduleT& key_schedule)
+ inline std::size_t get_number_of_keys(const KeyScheduleT& round_keys)
{
- return sizeof(key_schedule) / sizeof(Block128);
+ return sizeof(round_keys) / sizeof(Block128);
}
inline void make_block(Block128& dest, int hi3, int hi2, int lo1, int lo0)