Skip to content
Commit a76023d5 authored by Pablo de Lara's avatar Pablo de Lara
Browse files

lib: fix AES-CBCS in SSE/AVX

When passing multiple buffers with different buffer sizes,
the common length of them would be processed, as in CBC mode.
The problem is that the input/output pointers will be moved
equally in all buffers, meaning that the pointer of
a non-completed buffer might be pointing at a block that should
not be encrypted, and therefore, it will be encrypted in the next call.

Instead of this, the pointers are moved in steps of 160 bytes,
making sure that for non-new buffers, the input/output pointer
points at the next block to be encrypted
parent c8e80769
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment