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
85278d01
Commit
85278d01
authored
Jul 07, 2017
by
Matteo Brichese
Browse files
removed unecessary blockcopy
parent
00f1f921
Changes
1
Hide whitespace changes
Inline
Side-by-side
aes.c
View file @
85278d01
...
@@ -506,9 +506,6 @@ void AES_CBC_encrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, co
...
@@ -506,9 +506,6 @@ void AES_CBC_encrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, co
uintptr_t
i
;
uintptr_t
i
;
uint8_t
extra
=
length
%
BLOCKLEN
;
/* Remaining bytes in the last non-full block */
uint8_t
extra
=
length
%
BLOCKLEN
;
/* Remaining bytes in the last non-full block */
//memcpy(output, input, BLOCKLEN);
//state = (state_t*)output;
// Skip the key expansion if key is passed as 0
// Skip the key expansion if key is passed as 0
if
(
0
!=
key
)
if
(
0
!=
key
)
{
{
...
@@ -546,9 +543,6 @@ void AES_CBC_decrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, co
...
@@ -546,9 +543,6 @@ void AES_CBC_decrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, co
uintptr_t
i
;
uintptr_t
i
;
uint8_t
extra
=
length
%
BLOCKLEN
;
/* Remaining bytes in the last non-full block */
uint8_t
extra
=
length
%
BLOCKLEN
;
/* Remaining bytes in the last non-full block */
//memcpy(output, input, BLOCKLEN);
//state = (state_t*)output;
// Skip the key expansion if key is passed as 0
// Skip the key expansion if key is passed as 0
if
(
0
!=
key
)
if
(
0
!=
key
)
{
{
...
...
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