mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-13 08:32:08 +00:00
fix scope error
This commit is contained in:
parent
e66c01f0e6
commit
96f20287ff
@ -53,8 +53,7 @@ static void KeyExpansion(uint8_t* RoundKey, const uint8_t* Key)
|
|||||||
RoundKey[(i * 4) + 3] = Key[(i * 4) + 3];
|
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;
|
unsigned k = (i - 1) * 4;
|
||||||
tempa[0]=RoundKey[k + 0];
|
tempa[0]=RoundKey[k + 0];
|
||||||
@ -62,8 +61,6 @@ static void KeyExpansion(uint8_t* RoundKey, const uint8_t* Key)
|
|||||||
tempa[2]=RoundKey[k + 2];
|
tempa[2]=RoundKey[k + 2];
|
||||||
tempa[3]=RoundKey[k + 3];
|
tempa[3]=RoundKey[k + 3];
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
if (i % Nk == 0)
|
if (i % Nk == 0)
|
||||||
{
|
{
|
||||||
const uint8_t u8tmp = tempa[0];
|
const uint8_t u8tmp = tempa[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user