blob: f92c37418a6dcde82e2278a25360467e89841e3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<tt>
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>
<br><br>
PyCrypto's output doesn't match OpenSSL when decrypting a file in<br><br>
Blowfish CFB mode. To reproduce this, download and test<br><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>
<br></blockquote><div><br>Both are correct. The fact is that they use different default segment sizes for CFB:<br><br>
PyCrypto uses 8 bits, and OpenSSL 64 bits.<br><br>
<br>With:<br><br><br>
bf = Blowfish.new(key = key, mode = Blowfish.MODE_CFB, IV = iv,<br><br>
segment_size=64)<br><br>
<br><br>
You will get the same result.<br> <br></div></div><br>
</tt>
|