Update aes.c

Suggestion by @DamonHD in https://github.com/kokke/tiny-AES-c/issues/118
This commit is contained in:
kokke 2018-12-03 10:27:52 +01:00 committed by GitHub
parent 691aa01d4a
commit 0677e48a49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

4
aes.c
View File

@ -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