Permalink
Browse files

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

  • Loading branch information...
1 parent 7e71d86 commit b302e6b9ad30e0cc2a819fa245bd798528c4c3de @ckolivas committed Mar 16, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 aes.c
  2. +1 −1 aes.h
View
2 aes.c
@@ -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 )
View
2 aes.h
@@ -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 );

0 comments on commit b302e6b

Please sign in to comment.