diff options
author | bitdust <bitdust@users.noreply.github.com> | 2015-05-08 12:18:01 +0200 |
---|---|---|
committer | bitdust <bitdust@users.noreply.github.com> | 2015-05-08 12:18:01 +0200 |
commit | 27ce3c930846f077fcbb3d961d45dc6224721aba (patch) | |
tree | c9cb092f8f809565b93ffe2752105438d56d8f32 | |
parent | Update test.c (diff) | |
download | tiny-AES-c-27ce3c930846f077fcbb3d961d45dc6224721aba.tar tiny-AES-c-27ce3c930846f077fcbb3d961d45dc6224721aba.tar.gz tiny-AES-c-27ce3c930846f077fcbb3d961d45dc6224721aba.tar.bz2 tiny-AES-c-27ce3c930846f077fcbb3d961d45dc6224721aba.tar.lz tiny-AES-c-27ce3c930846f077fcbb3d961d45dc6224721aba.tar.xz tiny-AES-c-27ce3c930846f077fcbb3d961d45dc6224721aba.tar.zst tiny-AES-c-27ce3c930846f077fcbb3d961d45dc6224721aba.zip |
-rw-r--r-- | aes.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); @@ -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); |