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
84468b29
Unverified
Commit
84468b29
authored
Nov 10, 2017
by
kokke
Committed by
GitHub
Nov 10, 2017
Browse files
Update aes.c
parent
1cd676c2
Changes
1
Show whitespace changes
Inline
Side-by-side
aes.c
View file @
84468b29
...
@@ -550,6 +550,8 @@ void AES_CBC_encrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, co
...
@@ -550,6 +550,8 @@ void AES_CBC_encrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, co
if
(
extra
)
if
(
extra
)
{
{
memcpy
(
output
,
input
,
extra
);
memcpy
(
output
,
input
,
extra
);
memset
((
output
+
extra
),
0
,
(
BLOCKLEN
-
extra
));
XorWithIv
(
output
);
state
=
(
state_t
*
)
output
;
state
=
(
state_t
*
)
output
;
Cipher
();
Cipher
();
}
}
...
...
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