summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkokke <spam@rowdy.dk>2017-11-10 19:55:16 +0100
committerGitHub <noreply@github.com>2017-11-10 19:55:16 +0100
commit1cd676c262797c97228254072e88f8019e72f91a (patch)
treed468adc09ba544d60b390d03ee107afa460593d9
parentUpdate aes.c (diff)
downloadtiny-AES-c-1cd676c262797c97228254072e88f8019e72f91a.tar
tiny-AES-c-1cd676c262797c97228254072e88f8019e72f91a.tar.gz
tiny-AES-c-1cd676c262797c97228254072e88f8019e72f91a.tar.bz2
tiny-AES-c-1cd676c262797c97228254072e88f8019e72f91a.tar.lz
tiny-AES-c-1cd676c262797c97228254072e88f8019e72f91a.tar.xz
tiny-AES-c-1cd676c262797c97228254072e88f8019e72f91a.tar.zst
tiny-AES-c-1cd676c262797c97228254072e88f8019e72f91a.zip
-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;