From 8430473494fcdbf39e02fcff80d51124df728e97 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 17 Jun 2015 21:09:42 +0300 Subject: refactoring --- cxx/include/aesnixx/data.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cxx/include/aesnixx') 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 - 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) -- cgit v1.2.3