summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--aes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/aes.c b/aes.c
index 7d5c986..00575dc 100644
--- a/aes.c
+++ b/aes.c
@@ -537,8 +537,8 @@ void AES_CBC_encrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, co
for (i = 0; i < length; i += BLOCKLEN)
{
- XorWithIv(input);
memcpy(output, input, BLOCKLEN);
+ XorWithIv(output);
state = (state_t*)output;
Cipher();
Iv = output;