Commit 00f1f921 authored by Matteo Brichese's avatar Matteo Brichese
Browse files

removed unecessary blockcopy

parent 265d6bce
...@@ -506,8 +506,8 @@ void AES_CBC_encrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, co ...@@ -506,8 +506,8 @@ 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); //memcpy(output, input, BLOCKLEN);
state = (state_t*)output; //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,8 +546,8 @@ void AES_CBC_decrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, co ...@@ -546,8 +546,8 @@ 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); //memcpy(output, input, BLOCKLEN);
state = (state_t*)output; //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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment