removed unecessary blockcopy

This commit is contained in:
Matteo Brichese 2017-07-07 15:21:15 -07:00
parent 00f1f9218f
commit 85278d01f6
1 changed files with 0 additions and 6 deletions

6
aes.c
View File

@ -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
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)
{ {