mirror of
https://github.com/kokke/tiny-AES-c
synced 2024-11-22 21:42:11 +03:00
Update aes.c
This commit is contained in:
parent
15caccd122
commit
2138696a3d
4
aes.c
4
aes.c
@ -434,7 +434,7 @@ static void InvCipher(void)
|
||||
// There will be Nr rounds.
|
||||
// The first Nr-1 rounds are identical.
|
||||
// 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();
|
||||
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)
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user