1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<tt>
<div dir="ltr">Hi,<div><br></div><div style>I've just been trying to figure out why some code of mine broke after an update from 2.0.1 to 2.6.1, and found that I hadn't been passing an IV into AES.new() (using MODE_CFB).</div><br>
<br>
<div style><br></div><div style>Previously, it was happy with this, and, according to the docs here (<a href="https://www.dlitz.net/software/pycrypto/api/current/">https://www.dlitz.net/software/pycrypto/api/current/</a>), "It is optional and when not present it will be given a default value of all zeroes."</div><br>
<br>
<div style><br></div><div style>Looking at the code that throws the exception (<a href="https://github.com/dlitz/pycrypto/blob/master/src/block_template.c">https://github.com/dlitz/pycrypto/blob/master/src/block_template.c</a>, line 163), it doesn't allow for doing what the docs suggest it will.</div><br>
<br>
<div style><br></div><div style>I'm not sure whether I've either misunderstood something or which of the two is wrong, but I thought I'd at least flag it for discussion...</div><div style><br></div><div style><br>
<br>
<br></div><div style>Hugh</div></div><br>
<br>
<br><br>
<div style="color:rgb(0,0,255)"><span style="color:rgb(102,102,102)"><font face="Arial" size="2">D I S C L A I M E R : This email and any files transmitted with it are intended solely for the <span>intended </span>addressee,<br>
and may contain confidential information or material protected by law, <br>
copyright or other legislation. If you have received this message in <br>
error, please return it to the sender or notify the sender by calling <br>
+44 (0)20 3167 3860, and immediately and permanently delete it. You <br>
should not copy it or use it for any purpose, nor disclose its contents <br>
to any other person. Only the intended recipient may place any reliance <br>
upon it. Nvizible Limited accepts no responsibility or liability for <br>
emails sent by its employees or personnel which are not sent in the <br>
course of its business or that of its clients.</font></span></div><div style="color:rgb(0,0,255)"><font face="Arial" size="2"> </font></div><div style="color:rgb(0,0,255)"><span style="color:rgb(102,102,102)"><font face="Arial" size="2">Nvizible<br>
Limited, 8/9 Carlisle Street, London W1D 3BP . Registered in England & Wales with Company Number: 6900121</font></span></div>
</tt>
|