From 691aa01d4ab80c3dcc50f36408f0383f785e1977 Mon Sep 17 00:00:00 2001 From: kokke Date: Fri, 30 Nov 2018 09:01:13 +0100 Subject: [PATCH] Update aes.c Hopefully resolving 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 e275ed2..b54341c 100644 --- a/aes.c +++ b/aes.c @@ -182,11 +182,11 @@ static void KeyExpansion(uint8_t* RoundKey, const uint8_t* Key) // Function RotWord() { - k = tempa[0]; + uint8_t tmpu8 = tempa[0]; tempa[0] = tempa[1]; tempa[1] = tempa[2]; tempa[2] = tempa[3]; - tempa[3] = k; + tempa[3] = tmpu8; } // SubWord() is a function that takes a four-byte input word and