Package: python-crypto / 2.6.1-7

Metadata

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

Patch series

view the series file
Patch File delta Description
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.
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.
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
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.
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.
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.
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.
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.
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
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
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
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