Package: python-crypto / 2.6.1-9

Metadata

Package Version Patches format
python-crypto 2.6.1-9 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 dont drop g.patch | (download)

setup.py | 5 0 + 5 - 0 !
1 file changed, 5 deletions(-)

 don't drop -g and optimization values from the call to gcc

The binaries will be stripped later anyway and CFLAGS contains the correct
flags.
0002 fix unresolved reference size.patch | (download)

src/_fastmath.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix build issues if built without optimization.

If built with -O0 the call to size won't be inlined and thus _fastmath cannot
be loaded due to an unresolved symbol.
0003 fix epydoc ignore.patch | (download)

Doc/epydoc-config | 3 1 + 2 - 0 !
1 file changed, 1 insertion(+), 2 deletions(-)

 fix exclude-introspect stanza in epydoc-config

Last-Modified: 2012-08-28
0004 fix cipher iv documentation.patch | (download)

lib/Crypto/Cipher/AES.py | 3 1 + 2 - 0 !
lib/Crypto/Cipher/ARC2.py | 3 1 + 2 - 0 !
lib/Crypto/Cipher/Blowfish.py | 3 1 + 2 - 0 !
lib/Crypto/Cipher/CAST.py | 3 1 + 2 - 0 !
lib/Crypto/Cipher/DES.py | 3 1 + 2 - 0 !
lib/Crypto/Cipher/DES3.py | 3 1 + 2 - 0 !
6 files changed, 6 insertions(+), 12 deletions(-)

 update doctring to document actual behavior.

0005 reenable redefined tests.patch | (download)

lib/Crypto/SelfTest/Cipher/test_pkcs1_oaep.py | 11 6 + 5 - 0 !
lib/Crypto/SelfTest/PublicKey/test_importKey.py | 6 3 + 3 - 0 !
lib/Crypto/SelfTest/Util/test_asn1.py | 2 1 + 1 - 0 !
3 files changed, 10 insertions(+), 9 deletions(-)

 re-enable redefined tests.

The test suite contains tests that are disabled because they have the same name
as other tests. Renaming them enables them again.

PKCS1_OAEP_Tests.testEncryptDecrypt1 is updated to work with the new interface
of PKCS1_OAEP.
0006 fix py3 errors.patch | (download)

lib/Crypto/PublicKey/RSA.py | 6 3 + 3 - 0 !
lib/Crypto/SelfTest/PublicKey/test_importKey.py | 2 1 + 1 - 0 !
2 files changed, 4 insertions(+), 4 deletions(-)

 fix python 3 erros uncovered by reenable-redefined-tests.patch.

0007 fix except shadows builtin.patch | (download)

lib/Crypto/PublicKey/RSA.py | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix 'except shadows builtin' error.

Thanks to lintian4python for finding it.
0008 multiprocessing test.patch | (download)

lib/Crypto/SelfTest/Random/test__UserFriendlyRNG.py | 5 5 + 0 - 0 !
1 file changed, 5 insertions(+)

 do not run multiprocessing test if multiprocessing.synchronize is
 not working

On platforms that do not have a working sem_open implementation, importing
multiprocessing.synchronize will fail with an ImportError. While creating a
multiprocessing.Pool instance, multiprocessing.synchronize will be imported and
might throw an ImportError.
0009 unittest stream.patch | (download)

lib/Crypto/SelfTest/__init__.py | 4 3 + 1 - 0 !
1 file changed, 3 insertions(+), 1 deletion(-)

 fix handling of the output stream in selftest

0010 deprecated test methods.patch | (download)

lib/Crypto/SelfTest/Cipher/test_pkcs1_oaep.py | 2 1 + 1 - 0 !
lib/Crypto/SelfTest/Hash/common.py | 8 4 + 4 - 0 !
lib/Crypto/SelfTest/PublicKey/test_ElGamal.py | 40 20 + 20 - 0 !
lib/Crypto/SelfTest/PublicKey/test_RSA.py | 6 3 + 3 - 0 !
lib/Crypto/SelfTest/PublicKey/test_importKey.py | 10 5 + 5 - 0 !
lib/Crypto/SelfTest/Signature/test_pkcs1_15.py | 8 4 + 4 - 0 !
lib/Crypto/SelfTest/Signature/test_pkcs1_pss.py | 14 7 + 7 - 0 !
lib/Crypto/SelfTest/Util/test_asn1.py | 112 56 + 56 - 0 !
8 files changed, 100 insertions(+), 100 deletions(-)

 replace deprecated unittest methods

0011 asn1 decoding.patch | (download)

lib/Crypto/Util/asn1.py | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 fix typeerror in asn1 implementation

0012 CVE 2013 7459.patch | (download)

lib/Crypto/SelfTest/Cipher/common.py | 31 23 + 8 - 0 !
src/block_template.c | 11 11 + 0 - 0 !
2 files changed, 34 insertions(+), 8 deletions(-)

 [patch] throw exception when iv is used with ecb or ctr

The IV parameter is currently ignored when initializing
a cipher in ECB or CTR mode.

For CTR mode, it is confusing: it takes some time to see
0013 Backport of fix for CVE 2018 6594 from pycryptodome.patch | (download)

lib/Crypto/PublicKey/ElGamal.py | 30 15 + 15 - 0 !
1 file changed, 15 insertions(+), 15 deletions(-)

 backport of fix for cve-2018-6594 from pycryptodome

When creating ElGamal keys, the generator wasn't a square residue: ElGamal
encryption done with those keys cannot be secure under the DDH assumption.

More details:
- https://github.com/TElgamal/attack-on-pycrypto-elgamal
- https://github.com/Legrandin/pycryptodome/issues/90
- https://github.com/dlitz/pycrypto/issues/253

This commit is a backport to pycrypto of Legrandin/pycryptodome@99c27a3b
Thanks to Weikeng Chen.