xtea: fix CBC mode when src=dst
authorGiorgio Vazzana <mywing81@gmail.com>
Sun, 30 Sep 2012 14:00:19 +0000 (16:00 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 30 Sep 2012 15:51:45 +0000 (17:51 +0200)
commit8c3ee93be5ef757b12da81d14029f74c78b942ee
tree287603e6d7027e4fabdbed8a29b91f6fae85a9c6
parenta0321dadfde0e000de4e67cf9c709b8c667a02f8
xtea: fix CBC mode when src=dst

In CBC mode, when src=dst and we are decrypting a block different
from the first one, we need to save the current block of ciphertext
(which will constitute the initialization vector for the next block)
before we overwrite it.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/xtea.c