Unverified Commit 1cd676c2 authored by kokke's avatar kokke Committed by GitHub
Browse files

Update aes.c

parent 49929c36
...@@ -537,8 +537,8 @@ void AES_CBC_encrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, co ...@@ -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) for (i = 0; i < length; i += BLOCKLEN)
{ {
XorWithIv(input);
memcpy(output, input, BLOCKLEN); memcpy(output, input, BLOCKLEN);
XorWithIv(output);
state = (state_t*)output; state = (state_t*)output;
Cipher(); Cipher();
Iv = output; Iv = output;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment