Skip to content

Commit

Permalink
Merge pull request #19 from bitdust/master
Browse files Browse the repository at this point in the history
use uintptr_t instead of intptr_t to avoid warming C4018 in Virsual Studio.
  • Loading branch information
kokke committed May 25, 2015
2 parents 0373207 + 27ce3c9 commit 7c95946
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aes.c
Expand Up @@ -498,7 +498,7 @@ static void XorWithIv(uint8_t* buf)

void AES128_CBC_encrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, const uint8_t* key, const uint8_t* iv)
{
intptr_t i;
uintptr_t i;
uint8_t remainders = length % KEYLEN; /* Remaining bytes in the last non-full block */

BlockCopy(output, input);
Expand Down Expand Up @@ -538,7 +538,7 @@ void AES128_CBC_encrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length,

void AES128_CBC_decrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, const uint8_t* key, const uint8_t* iv)
{
intptr_t i;
uintptr_t i;
uint8_t remainders = length % KEYLEN; /* Remaining bytes in the last non-full block */

BlockCopy(output, input);
Expand Down

0 comments on commit 7c95946

Please sign in to comment.