[pycrypto] ANN: PyCrypto 2.6 released
Dwayne C. Litzenberger
dlitz at dlitz.net
Thu May 24 19:07:32 EDT 2012
PyCrypto 2.6 has been released!
You can download this release from http://www.pycrypto.org/. It has the
following SHA256 sums:
The git repository is here: https://github.com/dlitz/pycrypto/
The v2.6 commit id is: 373ea760f21701b162e8c4912a66928ee30d401a
Please test it and post your experiences to the PyCrypto mailing list:
pycrypto at lists.dlitz.net
and/or file bug reports on Launchpad:
Here is the changelog:
* [CVE-2012-2417] Fix LP#985164: insecure ElGamal key generation.
In the ElGamal schemes (for both encryption and signatures), g is
supposed to be the generator of the entire Z^*_p group. However, in
PyCrypto 2.5 and earlier, g is more simply the generator of a random
sub-group of Z^*_p.
The result is that the signature space (when the key is used for
signing) or the public key space (when the key is used for encryption)
may be greatly reduced from its expected size of log(p) bits, possibly
down to 1 bit (the worst case if the order of g is 2).
While it has not been confirmed, it has also been suggested that an
attacker might be able to use this fact to determine the private key.
Anyone using ElGamal keys should generate new keys as soon as practical.
Any additional information about this bug will be tracked at
* Huge documentation cleanup (thanks: Legrandin).
* Added more tests, including test vectors from NIST 800-38A
* Remove broken MODE_PGP, which never actually worked properly.
A new mode, MODE_OPENPGP, has been added for people wishing to write
OpenPGP implementations. Note that this does not implement the full
OpenPGP specification, only the "OpenPGP CFB mode" part of that
* Fix: getPrime with invalid input causes Python to abort with fatal error
* Fix: Segfaults within error-handling paths
(thanks: Paul Howarth & Dave Malcolm)
* Fix: Block ciphers allow empty string as IV
* Fix DevURandomRNG to work with Python3's new I/O stack.
(thanks: Sebastian Ramacher)
* Remove automagic dependencies on libgmp and libmpir, let the caller
disable them using args.
* Many other minor bug fixes and improvements (mostly thanks to Legrandin)
Thanks to everyone who helped make this release possible, especially to
Legrandin, who again did most of the work.
Dwayne C. Litzenberger <dlitz at dlitz.net>
OpenPGP: 19E1 1FE8 B3CF F273 ED17 4A24 928C EC13 39C2 5CF7
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 222 bytes
Desc: Digital signature
More information about the pycrypto