summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkokke <spam@rowdy.dk>2017-12-01 12:11:03 +0100
committerGitHub <noreply@github.com>2017-12-01 12:11:03 +0100
commitbacca1bd0c9725d2a5ac4c3fb37750755cb30755 (patch)
treedf44d35ea3fef386822522e7b6112439c2b405e8
parentUpdate aes.h (diff)
downloadtiny-AES-c-bacca1bd0c9725d2a5ac4c3fb37750755cb30755.tar
tiny-AES-c-bacca1bd0c9725d2a5ac4c3fb37750755cb30755.tar.gz
tiny-AES-c-bacca1bd0c9725d2a5ac4c3fb37750755cb30755.tar.bz2
tiny-AES-c-bacca1bd0c9725d2a5ac4c3fb37750755cb30755.tar.lz
tiny-AES-c-bacca1bd0c9725d2a5ac4c3fb37750755cb30755.tar.xz
tiny-AES-c-bacca1bd0c9725d2a5ac4c3fb37750755cb30755.tar.zst
tiny-AES-c-bacca1bd0c9725d2a5ac4c3fb37750755cb30755.zip
-rw-r--r--aes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/aes.c b/aes.c
index 3cf09ba..12b9661 100644
--- a/aes.c
+++ b/aes.c
@@ -609,7 +609,8 @@ void AES_CTR_xcrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, con
Key = key;
KeyExpansion();
- int i, j;
+ int j;
+ unsigned i;
for (i = 0; i < length; ++i)
{
if ((i & (BLOCKLEN - 1)) == 0)