fix scope error

pull/1412/head
Thomas Göttgens 2022-04-26 21:30:14 +02:00
rodzic e66c01f0e6
commit 96f20287ff
1 zmienionych plików z 6 dodań i 9 usunięć

Wyświetl plik

@ -53,16 +53,13 @@ static void KeyExpansion(uint8_t* RoundKey, const uint8_t* Key)
RoundKey[(i * 4) + 3] = Key[(i * 4) + 3];
}
for (i = Nk; i < Nb * (Nr + 1); ++i)
for (unsigned i = Nk; i < Nb * (Nr + 1); ++i)
{
{
unsigned k = (i - 1) * 4;
tempa[0]=RoundKey[k + 0];
tempa[1]=RoundKey[k + 1];
tempa[2]=RoundKey[k + 2];
tempa[3]=RoundKey[k + 3];
}
unsigned k = (i - 1) * 4;
tempa[0]=RoundKey[k + 0];
tempa[1]=RoundKey[k + 1];
tempa[2]=RoundKey[k + 2];
tempa[3]=RoundKey[k + 3];
if (i % Nk == 0)
{