[pycrypto] Typo or bug?

Legrandin gooksankoo at hoiptorrow.mailexpire.com
Tue Jun 26 08:01:36 EDT 2012


> > Up to pycrypto 2.5, when no iv was provided to new() a string of zeroes
> was
> > automatically used.
> > Depending on your application, that may or may not be a problem. It is
> wiser
> > to always make iv explicit.
>
> Which explains why my 'old' code failed. Thanks.
> Needing both key and iv... It sounds like asking for two keys to unlock a
> box?
> Is that the idea?
>

Well, an important difference is that the IV is not a secret, so it's not
really a key,
just a way to randomize the key stream.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dlitz.net/pipermail/pycrypto/attachments/20120626/86c9f685/attachment.html>


More information about the pycrypto mailing list