<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hello All:</tt><tt><br>
</tt><tt><br>
</tt><tt><br>
</tt><tt>I found a </tt><tt>strange bug in size() function that
return a wrong key size after creating or importing an RSA key.
The return value for the size funciont seems to be keysize-1.<br>
<br>
Here a demo of the bug:<br>
<br>
</tt><tt><br>
</tt><tt><font color="#000099">luisgf@NCC1701B:~$ python3<br>
Python 3.4.0 (default, Apr 11 2014, 13:05:11) <br>
[GCC 4.8.2] on linux<br>
Type "help", "copyright", "credits" or "license" for more
information.<br>
>>> from Crypto.PublicKey import RSA<br>
>>> key = RSA.generate(2048)<br>
>>> key.size()<br>
2047<br>
>>> </font><br>
<br>
<br>
Regards.<br>
</tt>
<pre class="moz-signature" cols="72">--
--
Luis González Fernández
<a class="moz-txt-link-freetext" href="https://www.luisgf.es">https://www.luisgf.es</a>
PGP ID: C918B80F (DD6F BFC1 FC14 4C81 34F8 EA1E 6BCB C27F C918 B80F)
Twitter: @luisgf_2001 / Jabber: <a class="moz-txt-link-abbreviated" href="mailto:luisgf@mijabber.es">luisgf@mijabber.es</a></pre>
</body>
</html>