Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Tiny AES C
Commits
7c959460
Commit
7c959460
authored
May 25, 2015
by
kokke
Browse files
Merge pull request #19 from bitdust/master
use uintptr_t instead of intptr_t to avoid warming C4018 in Virsual Studio.
parents
03732078
27ce3c93
Changes
1
Hide whitespace changes
Inline
Side-by-side
aes.c
View file @
7c959460
...
...
@@ -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
;
u
intptr_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
;
u
intptr_t
i
;
uint8_t
remainders
=
length
%
KEYLEN
;
/* Remaining bytes in the last non-full block */
BlockCopy
(
output
,
input
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment