diff options
author | kokke <spam@rowdy.dk> | 2017-11-10 20:19:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-10 20:19:02 +0100 |
commit | 84468b291bb7c258b40870dd999f75cbff00aa50 (patch) | |
tree | 1af5e76c9ed1b3247bc2f8f7afe07c2d7d03cc36 | |
parent | Update aes.c (diff) | |
download | tiny-AES-c-84468b291bb7c258b40870dd999f75cbff00aa50.tar tiny-AES-c-84468b291bb7c258b40870dd999f75cbff00aa50.tar.gz tiny-AES-c-84468b291bb7c258b40870dd999f75cbff00aa50.tar.bz2 tiny-AES-c-84468b291bb7c258b40870dd999f75cbff00aa50.tar.lz tiny-AES-c-84468b291bb7c258b40870dd999f75cbff00aa50.tar.xz tiny-AES-c-84468b291bb7c258b40870dd999f75cbff00aa50.tar.zst tiny-AES-c-84468b291bb7c258b40870dd999f75cbff00aa50.zip |
-rw-r--r-- | aes.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -550,6 +550,8 @@ void AES_CBC_encrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, co if (extra) { memcpy(output, input, extra); + memset((output + extra), 0, (BLOCKLEN - extra)); + XorWithIv(output); state = (state_t*)output; Cipher(); } |