mirror of
https://github.com/kokke/tiny-AES-c
synced 2024-11-24 22:39:54 +03:00
Update aes.c
Hopefully resolving https://github.com/kokke/tiny-AES-c/issues/118
This commit is contained in:
parent
3a28fc9a87
commit
691aa01d4a
4
aes.c
4
aes.c
@ -182,11 +182,11 @@ static void KeyExpansion(uint8_t* RoundKey, const uint8_t* Key)
|
|||||||
|
|
||||||
// Function RotWord()
|
// Function RotWord()
|
||||||
{
|
{
|
||||||
k = tempa[0];
|
uint8_t tmpu8 = tempa[0];
|
||||||
tempa[0] = tempa[1];
|
tempa[0] = tempa[1];
|
||||||
tempa[1] = tempa[2];
|
tempa[1] = tempa[2];
|
||||||
tempa[2] = tempa[3];
|
tempa[2] = tempa[3];
|
||||||
tempa[3] = k;
|
tempa[3] = tmpu8;
|
||||||
}
|
}
|
||||||
|
|
||||||
// SubWord() is a function that takes a four-byte input word and
|
// SubWord() is a function that takes a four-byte input word and
|
||||||
|
Loading…
Reference in New Issue
Block a user