diff options
author | kokke <spam@rowdy.dk> | 2014-06-03 00:08:07 +0200 |
---|---|---|
committer | kokke <spam@rowdy.dk> | 2014-06-03 00:08:07 +0200 |
commit | 6acd65390954ce3f51b2581734fed033acbf18e6 (patch) | |
tree | f7b2c91f4296ab635b8ced6b525f6d9ff373bb2e | |
parent | Update README.md (diff) | |
download | tiny-AES-c-6acd65390954ce3f51b2581734fed033acbf18e6.tar tiny-AES-c-6acd65390954ce3f51b2581734fed033acbf18e6.tar.gz tiny-AES-c-6acd65390954ce3f51b2581734fed033acbf18e6.tar.bz2 tiny-AES-c-6acd65390954ce3f51b2581734fed033acbf18e6.tar.lz tiny-AES-c-6acd65390954ce3f51b2581734fed033acbf18e6.tar.xz tiny-AES-c-6acd65390954ce3f51b2581734fed033acbf18e6.tar.zst tiny-AES-c-6acd65390954ce3f51b2581734fed033acbf18e6.zip |
-rw-r--r-- | aes.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -179,10 +179,10 @@ static void KeyExpansion() tempa[3] = getSBoxValue(tempa[3]); } } - 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]; + 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]; } } |