Update aes.c
This commit is contained in:
4
aes.c
4
aes.c
@@ -434,7 +434,7 @@ static void InvCipher(void)
|
|||||||
// There will be Nr rounds.
|
// There will be Nr rounds.
|
||||||
// The first Nr-1 rounds are identical.
|
// The first Nr-1 rounds are identical.
|
||||||
// These Nr-1 rounds are executed in the loop below.
|
// These Nr-1 rounds are executed in the loop below.
|
||||||
for(round=Nr-1;round>0;round--)
|
for (round = (Nr - 1); round > 0; --round)
|
||||||
{
|
{
|
||||||
InvShiftRows();
|
InvShiftRows();
|
||||||
InvSubBytes();
|
InvSubBytes();
|
||||||
@@ -483,7 +483,7 @@ void AES_ECB_decrypt(const uint8_t* input, const uint8_t* key, uint8_t *output,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif // #if defined(ECB) && ECB
|
#endif // #if defined(ECB) && (ECB == 1)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user