Update aes.c

This commit is contained in:
kokke 2017-12-01 12:11:03 +01:00 committed by GitHub
parent fbaaf6199c
commit bacca1bd0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

3
aes.c
View File

@ -609,7 +609,8 @@ void AES_CTR_xcrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, con
Key = key; Key = key;
KeyExpansion(); KeyExpansion();
int i, j; int j;
unsigned i;
for (i = 0; i < length; ++i) for (i = 0; i < length; ++i)
{ {
if ((i & (BLOCKLEN - 1)) == 0) if ((i & (BLOCKLEN - 1)) == 0)