summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkokke <spam@rowdy.dk>2017-12-13 10:29:33 +0100
committerGitHub <noreply@github.com>2017-12-13 10:29:33 +0100
commit6dfe50fd61b510f2edb46ac6453bda7dffd95ebf (patch)
treedc68542434a3da2fd33e8f5c6411173bc5f06d5e
parentfixing #77 (diff)
downloadtiny-AES-c-6dfe50fd61b510f2edb46ac6453bda7dffd95ebf.tar
tiny-AES-c-6dfe50fd61b510f2edb46ac6453bda7dffd95ebf.tar.gz
tiny-AES-c-6dfe50fd61b510f2edb46ac6453bda7dffd95ebf.tar.bz2
tiny-AES-c-6dfe50fd61b510f2edb46ac6453bda7dffd95ebf.tar.lz
tiny-AES-c-6dfe50fd61b510f2edb46ac6453bda7dffd95ebf.tar.xz
tiny-AES-c-6dfe50fd61b510f2edb46ac6453bda7dffd95ebf.tar.zst
tiny-AES-c-6dfe50fd61b510f2edb46ac6453bda7dffd95ebf.zip
-rw-r--r--aes.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/aes.c b/aes.c
index 77a7cde..8fd0a85 100644
--- a/aes.c
+++ b/aes.c
@@ -155,8 +155,6 @@ 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];
@@ -164,7 +162,6 @@ static void KeyExpansion(uint8_t* RoundKey, const uint8_t* Key)
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)