From 0677e48a4980cc3695bc0f4dab89bad8708d16ea Mon Sep 17 00:00:00 2001 From: kokke Date: Mon, 3 Dec 2018 10:27:52 +0100 Subject: Update aes.c Suggestion by @DamonHD in https://github.com/kokke/tiny-AES-c/issues/118 --- aes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aes.c b/aes.c index b54341c..c79a618 100644 --- a/aes.c +++ b/aes.c @@ -182,11 +182,11 @@ static void KeyExpansion(uint8_t* RoundKey, const uint8_t* Key) // Function RotWord() { - uint8_t tmpu8 = tempa[0]; + const uint8_t u8tmp = tempa[0]; tempa[0] = tempa[1]; tempa[1] = tempa[2]; tempa[2] = tempa[3]; - tempa[3] = tmpu8; + tempa[3] = u8tmp; } // SubWord() is a function that takes a four-byte input word and -- cgit v1.2.3