diff options
author | kokke <spam@rowdy.dk> | 2014-05-30 14:51:16 +0200 |
---|---|---|
committer | kokke <spam@rowdy.dk> | 2014-05-30 14:51:16 +0200 |
commit | f063d2a6683320dd8b484d6bf77703bb8e9f9556 (patch) | |
tree | ba49af69b0f9f3f5aa4e2c0ed6a4c2abbc90f2b5 | |
parent | Update README.md (diff) | |
download | tiny-AES-c-f063d2a6683320dd8b484d6bf77703bb8e9f9556.tar tiny-AES-c-f063d2a6683320dd8b484d6bf77703bb8e9f9556.tar.gz tiny-AES-c-f063d2a6683320dd8b484d6bf77703bb8e9f9556.tar.bz2 tiny-AES-c-f063d2a6683320dd8b484d6bf77703bb8e9f9556.tar.lz tiny-AES-c-f063d2a6683320dd8b484d6bf77703bb8e9f9556.tar.xz tiny-AES-c-f063d2a6683320dd8b484d6bf77703bb8e9f9556.tar.zst tiny-AES-c-f063d2a6683320dd8b484d6bf77703bb8e9f9556.zip |
-rw-r--r-- | aes.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -180,7 +180,7 @@ static void KeyExpansion() tempa[3] = getSBoxValue(tempa[3]); } } - RoundKey[ i * 4 ] = RoundKey[ i - Nk * 4 ] ^ tempa[0]; + RoundKey[ i * 4 ] = RoundKey[(i - Nk) * 4 ] ^ tempa[0]; RoundKey[(i * 4) + 1] = RoundKey[(i - Nk) * (4 + 1)] ^ tempa[1]; RoundKey[(i * 4) + 2] = RoundKey[(i - Nk) * (4 + 2)] ^ tempa[2]; RoundKey[(i * 4) + 3] = RoundKey[(i - Nk) * (4 + 3)] ^ tempa[3]; |