[pycrypto] PyCrypto's output doesn't match OpenSSL's result

Legrandin gooksankoo at hoiptorrow.mailexpire.com
Mon Jun 4 13:26:20 EDT 2012


2012/6/4 Webie <assie181 at gmail.com>

>
> PyCrypto's output doesn't match OpenSSL when decrypting a file in
> Blowfish CFB mode. To reproduce this, download and test
> http://dl.dropbox.com/u/1522424/PyCrypto-strange.tar.
>
>
Both are correct. The fact is that they use different default segment sizes
for CFB:
PyCrypto uses 8 bits, and OpenSSL 64 bits.

With:

bf = Blowfish.new(key = key, mode = Blowfish.MODE_CFB, IV = iv,
       segment_size=64)

You will get the same result.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dlitz.net/pipermail/pycrypto/attachments/20120604/776153c0/attachment.html>


More information about the pycrypto mailing list