Better make length a long long int in aes_crypt_cbc just in case.

This commit is contained in:
Con Kolivas 2011-03-16 12:11:22 +11:00
parent 7e71d8689f
commit b302e6b9ad
2 changed files with 2 additions and 2 deletions

2
aes.c
View file

@ -754,7 +754,7 @@ int aes_crypt_ecb( aes_context *ctx,
*/
int aes_crypt_cbc( aes_context *ctx,
int mode,
int length,
long long int length,
unsigned char iv[16],
const unsigned char *input,
unsigned char *output )

2
aes.h
View file

@ -100,7 +100,7 @@ int aes_crypt_ecb( aes_context *ctx,
*/
int aes_crypt_cbc( aes_context *ctx,
int mode,
int length,
long long int length,
unsigned char iv[16],
const unsigned char *input,
unsigned char *output );