On Tue, 3 Jul 2012, Samuel Pitoiset wrote:
On Tue, Jul 3, 2012 at 10:16 AM, Martin Storsjö <[email protected]> wrote:
On Mon, 2 Jul 2012, Samuel Pitoiset wrote:
This implementation of XTEA uses the Electronic CodeBook (ECB) mode.
This mode is now useless and not recommanded for new applications
because he has some security issues. However, we need it in order to
implement RTMPE natively in libavformat.
Well, if it's used for the same thing as blowfish, it (as far as I can see)
only is used on one single block. So for that case, it's not any more or
less useful than any other cipher block mode, since there's only a
difference once you encode more than one block.
Okay, I'll implement CBC mode by passing an initialization vector as
parameter like in AES.
In order to be consistent, I think I'll merge av_xtea_encrypt_ebc()
and av_xtea_decrypt_ebc() in av_xtea_crypt().
So, the new prototype is:
void av_xtea_crypt(struct AVXTEA *x, uint8_t * dst, const uint8_t
*dst, int count, uint8_t *iv, int decrypt);
It's okay for you?
Yes, that sounds good.
// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel