Skip to content

Commit

Permalink
Update aes.c
Browse files Browse the repository at this point in the history
  • Loading branch information
kokke authored Dec 13, 2017
1 parent d574614 commit 6dfe50f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions aes.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,16 +155,13 @@ static void KeyExpansion(uint8_t* RoundKey, const uint8_t* Key)
uint8_t tempa[4]; // Used for the column/row operations

// The first round key is the key itself.
memcpy(RoundKey, Key, AES_keyExpSize);
/*
for (i = 0; i < Nk; ++i)
{
RoundKey[(i * 4) + 0] = Key[(i * 4) + 0];
RoundKey[(i * 4) + 1] = Key[(i * 4) + 1];
RoundKey[(i * 4) + 2] = Key[(i * 4) + 2];
RoundKey[(i * 4) + 3] = Key[(i * 4) + 3];
}
*/

// All other round keys are found from the previous round keys.
for (i = Nk; i < Nb * (Nr + 1); ++i)
Expand Down

0 comments on commit 6dfe50f

Please sign in to comment.