summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkokke <spam@rowdy.dk>2014-05-29 02:32:36 +0200
committerkokke <spam@rowdy.dk>2014-05-29 02:32:36 +0200
commit9920c53d69080e5005cd6ad2aaaf3dd339f80a0f (patch)
tree4c0fecf7670b5962916d5312912c61d19b920c1d
parentUpdate README (diff)
downloadtiny-AES-c-9920c53d69080e5005cd6ad2aaaf3dd339f80a0f.tar
tiny-AES-c-9920c53d69080e5005cd6ad2aaaf3dd339f80a0f.tar.gz
tiny-AES-c-9920c53d69080e5005cd6ad2aaaf3dd339f80a0f.tar.bz2
tiny-AES-c-9920c53d69080e5005cd6ad2aaaf3dd339f80a0f.tar.lz
tiny-AES-c-9920c53d69080e5005cd6ad2aaaf3dd339f80a0f.tar.xz
tiny-AES-c-9920c53d69080e5005cd6ad2aaaf3dd339f80a0f.tar.zst
tiny-AES-c-9920c53d69080e5005cd6ad2aaaf3dd339f80a0f.zip
-rw-r--r--aes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/aes.c b/aes.c
index 7dd06e4..6a9b641 100644
--- a/aes.c
+++ b/aes.c
@@ -137,7 +137,7 @@ static void KeyExpansion()
}
// All other round keys are found from the previous round keys.
- for(; (i < (Nb * Nr) + 1); ++i)
+ for(; (i < (Nb * (Nr + 1)); ++i)
{
for(j = 0; j < 4; ++j)
{