summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatteo Brichese <matteo.brichese@wunderbar.com>2017-07-08 00:21:08 +0200
committerMatteo Brichese <matteo.brichese@wunderbar.com>2017-07-08 00:21:08 +0200
commit00f1f9218f9618475532507c48628ee540841f4d (patch)
tree5184f25fdfe7539e12fea541c18f5d3cc8e4f07c
parentremoving unused buffer (diff)
downloadtiny-AES-c-00f1f9218f9618475532507c48628ee540841f4d.tar
tiny-AES-c-00f1f9218f9618475532507c48628ee540841f4d.tar.gz
tiny-AES-c-00f1f9218f9618475532507c48628ee540841f4d.tar.bz2
tiny-AES-c-00f1f9218f9618475532507c48628ee540841f4d.tar.lz
tiny-AES-c-00f1f9218f9618475532507c48628ee540841f4d.tar.xz
tiny-AES-c-00f1f9218f9618475532507c48628ee540841f4d.tar.zst
tiny-AES-c-00f1f9218f9618475532507c48628ee540841f4d.zip
-rw-r--r--aes.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/aes.c b/aes.c
index e58498f..66dc4f6 100644
--- a/aes.c
+++ b/aes.c
@@ -506,8 +506,8 @@ void AES_CBC_encrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, co
uintptr_t i;
uint8_t extra = length % BLOCKLEN; /* Remaining bytes in the last non-full block */
- memcpy(output, input, BLOCKLEN);
- state = (state_t*)output;
+ //memcpy(output, input, BLOCKLEN);
+ //state = (state_t*)output;
// Skip the key expansion if key is passed as 0
if(0 != key)
@@ -546,8 +546,8 @@ void AES_CBC_decrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, co
uintptr_t i;
uint8_t extra = length % BLOCKLEN; /* Remaining bytes in the last non-full block */
- memcpy(output, input, BLOCKLEN);
- state = (state_t*)output;
+ //memcpy(output, input, BLOCKLEN);
+ //state = (state_t*)output;
// Skip the key expansion if key is passed as 0
if(0 != key)