diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-17 21:09:42 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-17 21:09:42 +0300 |
commit | 8430473494fcdbf39e02fcff80d51124df728e97 (patch) | |
tree | ba2a30c419e2d2e9fdd05ff697d98e24f1ef1876 /cxx/include/aesnixx/data.hpp | |
parent | factoring out AES-specific stuff (diff) | |
download | aes-tools-8430473494fcdbf39e02fcff80d51124df728e97.tar.gz aes-tools-8430473494fcdbf39e02fcff80d51124df728e97.zip |
refactoring
Diffstat (limited to '')
-rw-r--r-- | cxx/include/aesnixx/data.hpp | 4 |
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) |