From c61bfd12a935bea47526f360b3e6dc3c4550f94d Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 18 Jun 2015 19:46:46 +0300 Subject: code style --- examples/common.hpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'examples/common.hpp') diff --git a/examples/common.hpp b/examples/common.hpp index 25ee87d..9e98de5 100644 --- a/examples/common.hpp +++ b/examples/common.hpp @@ -82,24 +82,24 @@ namespace dump_iv(iv); } - template - void dump_schedule(const char* name, const KeyScheduleT& schedule) + template + void dump_round_keys(const char* name, const RoundKeysT& round_keys) { std::cout << name << ":\n"; - for (std::size_t i = 0; i < aesni::aes::get_number_of_rounds(schedule); ++i) - std::cout << "\t[" << i << "]: " << aesni::aes::to_string(schedule.keys[i]) << "\n"; + for (std::size_t i = 0; i < aesni::aes::get_number_of_rounds(round_keys); ++i) + std::cout << "\t[" << i << "]: " << aesni::aes::to_string(round_keys.keys[i]) << "\n"; std::cout << "\n"; } - template - void dump_encryption_schedule(const KeyScheduleT& schedule) + template + void dump_encryption_keys(const RoundKeysT& round_keys) { - dump_schedule("Encryption schedule", schedule); + dump_round_keys("Encryption round keys", round_keys); } - template - void dump_decryption_schedule(const KeyScheduleT& schedule) + template + void dump_decryption_keys(const RoundKeysT& round_keys) { - dump_schedule("Decryption schedule", schedule); + dump_round_keys("Decryption round keys", round_keys); } } -- cgit v1.2.3