Update aes.c

This commit is contained in:
kokke 2017-11-10 19:55:16 +01:00 committed by GitHub
parent 49929c36ab
commit 1cd676c262
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
aes.c
View File

@ -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;