2012/6/4 Webie <span dir="ltr"><<a href="mailto:assie181@gmail.com" target="_blank">assie181@gmail.com</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
PyCrypto's output doesn't match OpenSSL when decrypting a file in<br>
Blowfish CFB mode. To reproduce this, download and test<br>
<a href="http://dl.dropbox.com/u/1522424/PyCrypto-strange.tar" target="_blank">http://dl.dropbox.com/u/1522424/PyCrypto-strange.tar</a>.<br>
<br></blockquote><div><br>Both are correct. The fact is that they use different default segment sizes for CFB:<br>
PyCrypto uses 8 bits, and OpenSSL 64 bits.<br>
<br>With:<br><br>
bf = Blowfish.new(key = key, mode = Blowfish.MODE_CFB, IV = iv,<br>
       segment_size=64)<br>
<br>
You will get the same result.<br> <br></div></div>