diff options
author | kokke <spam@rowdy.dk> | 2017-11-10 19:55:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-10 19:55:16 +0100 |
commit | 1cd676c262797c97228254072e88f8019e72f91a (patch) | |
tree | d468adc09ba544d60b390d03ee107afa460593d9 /aes.c | |
parent | Update aes.c (diff) | |
download | tiny-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 |
Diffstat (limited to 'aes.c')
-rw-r--r-- | aes.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |