debian/0000755000000000000000000000000012313576622007175 5ustar debian/python-crypto.pydist0000644000000000000000000000003712173466637013302 0ustar pycrypto python-crypto; PEP386 debian/python-crypto-dbg.install0000644000000000000000000000005512173466640014160 0ustar usr/lib/python2.*/*-packages/Crypto/*/*_d.so debian/copyright0000644000000000000000000000716512173466637011151 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: pycrypto Upstream-Contact: Dwayne C. Litzenberger Source: http://www.dlitz.net/software/pycrypto/ Files: * Copyright: public-domain License: public-domain Copyright and licensing of the Python Cryptography Toolkit ("PyCrypto"): ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To the best of our knowledge, with the exceptions noted below or within the files themselves, the files that constitute PyCrypto are in the public domain. Most are distributed with the following notice: . The contents of this file are dedicated to the public domain. To the extent that dedication to the public domain is not available, everyone is granted a worldwide, perpetual, royalty-free, non-exclusive license to exercise all rights associated with the contents of this file for any purpose whatsoever. No rights are reserved. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. . Exception: . - Portions of HMAC.py and setup.py are derived from Python 2.2, and are therefore Copyright (c) 2001, 2002, 2003 Python Software Foundation (All Rights Reserved). They are licensed by the PSF under the terms of the Python 2.2 license. (See the file LEGAL/copy/LICENSE.python-2.2 for details.) . EXPORT RESTRICTIONS: . Note that the export or re-export of cryptographic software and/or source code may be subject to regulation in your jurisdiction. Files: debian/* Copyright: 2011-2013 Sebastian Ramacher License: BSD-3-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Comment: The original packaging is by: * 2002-2010 Andreas Rottmann and * 2010 James Cook But only parts of debian/control, debian/watch and debian/python-crypto-doc.doc-base remain from the old packaging. Everything else has been rewritten. debian/changelog0000644000000000000000000004432512313576622011057 0ustar python-crypto (2.6.1-4build1) trusty; urgency=medium * No-change rebuild to drop Python 3.3 support. -- Matthias Klose Sun, 23 Mar 2014 15:28:18 +0000 python-crypto (2.6.1-4) unstable; urgency=medium * debian/python3-crypto{,-dbg}.install: Fix wildcards to not include debug extensions with arm in the name in python3-crypto. (Closes: #740086) - Extensions built for Python 3.2 are no longer handled, so this requires python3-all-dev >= 3.3.2-5. * Use pybuild buildsystem: - debian/control: Add dh-python to Build-Depends. - debian/rules: + Pass --buildsystem=pybuild to dh. + Remove dh_auto_clean, dh_auto_build and dh_auto_install overrides. + Adapt dh_auto_test override for pybuild. * Build documention in -indep targets: - debian/control: Move python-docutils and python-epydoc to Build-Depends-Indep. - debian/rules: Build documentation in override_dh_auto_build-indep. * debian/patches/deprecated-test-methods.patch: Replace deprecated unittest methods. Python 3.3's and 3.4's 2to3 generate different files otherwise. -- Sebastian Ramacher Tue, 25 Feb 2014 23:16:33 +0100 python-crypto (2.6.1-3) unstable; urgency=low * debian/control: - Fix some mistakes in Description. (Closes: #729241) - Bump Standards-Version to 3.9.5. * debian/watch: Only honor stable releases. * debian/{watch,upstream-signing-key.pgp}: Check signature of the orig tarball. * debian/patches/unittest-stream.patch: Fix stream handling in SelfTest. Otherwise the actual error won't get printed and an unrelated exception will be thrown. -- Sebastian Ramacher Fri, 24 Jan 2014 00:20:53 +0100 python-crypto (2.6.1-2) unstable; urgency=low * debian/patches/multiprocessing-test.patch: Check if multiprocessing.synchronize is working before running tests that use it. Fixes build failures on kfreebsd-*. -- Sebastian Ramacher Thu, 17 Oct 2013 22:02:39 +0200 python-crypto (2.6.1-1) unstable; urgency=high [ Jakub Wilk ] * Drop obsolete Conflicts/Replaces with python2.3-crypto and python2.4-crypto. [ Sebastian Ramacher ] * New upstream release. - Fixes CVE-2013-1445: PRNG not correctly reseeded in some situations. * Set urgency to high since this upload fixes a security issue. * debian/python3-crypto.install: Fix lintian warning brace-expansion-in-debhelper-config-file. -- Sebastian Ramacher Thu, 17 Oct 2013 18:24:51 +0200 python-crypto (2.6-5) unstable; urgency=low * debian/patches/dont-drop-g.patch: Fix Origin and add Author. * Install extensions for Python 3.3 to the correct packages. (Closes: #707654) * debian/rules: Drop override_dh_install. * debian/python{,3}-crypto{,-dbg}.install: Add proper .install files. * debian/control: - Bump Standards-Version to 3.9.4, no changes needed. - Use anonscm.debian.org in Vcs-Svn too. * debian/python{,3}-crypto.pydist: Help dh_python2 to translate pycrypto in requirements.txt to the correct Debian package. * debian/tests: Add DEP-8 tests. * debian/copyright: Update copyright years. * debian/python{,3}-crypto.docs: Don't install TODO as it's not useful. -- Sebastian Ramacher Fri, 10 May 2013 01:32:46 +0200 python-crypto (2.6-4) unstable; urgency=low * debian/python-crypto-dbg.preinst: Add preinst script to handle symlink to directory conversion for /usr/share/doc/python-crypto-dbg. Thanks to Andreas Beckmann for the report. (Closes: #700778) -- Sebastian Ramacher Sun, 17 Feb 2013 16:24:21 +0100 python-crypto (2.6-3) unstable; urgency=low * debian/{control,copyright}: Update my mail address. * debian/control: - Remove DM-Upload-Allowed. - Add Breaks python{,3}-keyring (<= 0.7.1-1) to python{,3}-crypto. -- Sebastian Ramacher Thu, 03 Jan 2013 00:32:03 +0100 python-crypto (2.6-2) unstable; urgency=low * debian/patches: - fix-cipher-iv-documentation.patch: Add patch from Stefano Rivera to document the actual behavior of the ciphers' new method with respect to the IV. - fix-epydoc-ignore.patch: Mark as forwarded. - reenable-redefined-tests.patch: Re-enable tests that have been redefined. Thanks to Jakub Wilk's lintian4python. - fix-py3-errors.patch: Fix Python 3 compatibility issues revealed by the re-enabled tests. - fix-except-shadows-builtin.patch: Fix 'except shadows builtin' error found by lintian4python. * debian/compat: Bump to 9. * debian/control: Bump Build-Dep on debhelper to >= 9. * debian/rules: - Run loops with set -ex. - Merge Python 2 and Python 3 loops. This can be done at once. - Don't call dh_install twice. - Build documentation in override_dh_auto_build. - Drop the *FLAGS exports. -- Sebastian Ramacher Thu, 31 May 2012 11:46:10 +0200 python-crypto (2.6-1) unstable; urgency=high * New upstream release. - Fixes CVE-2012-2417: insecure ElGamal key generation. * Set urgency to high since this fixes a security issue. * debian/copyright: - Fix formatting. - Update Format URL. * debian/control: - Bump Standards-Version to 3.9.3 (no changes required). - Drop qNEW from Description since qNEW has been removed. * debian/patches: Remove posixread.patch (not needed anymore). -- Sebastian Ramacher Thu, 24 May 2012 20:16:34 +0200 python-crypto (2.5-2) unstable; urgency=low * debian/patches: add posixread.patch to fix incorrect assumption on data returned from read. (Closes: #654160) -- Sebastian Ramacher Sat, 21 Jan 2012 13:09:09 +0100 python-crypto (2.5-1) unstable; urgency=low * New upstream release. * debian/patches: add fix-epydog-ignore.patch to fix some warnings from epydoc. -- Sebastian Ramacher Fri, 13 Jan 2012 21:46:38 +0100 python-crypto (2.4.1-1) unstable; urgency=low * New upstream release. * debian/rules: also export CPPFLAGS to honor all hardening flags. * Support noopt. - debian/patches: + dont-drop-g.patch: update to don't drop optimization flags and to don't append -O3. + Add fix-unresolved-reference-size.patch to fix an unresolved reference in _fastmath when built without optimization. - debian/rules: if noopt is not set, append -O3 to CFLAGS (as upstream does). -- Sebastian Ramacher Wed, 16 Nov 2011 18:09:13 +0100 python-crypto (2.4-1) unstable; urgency=low [ Sebastian Ramacher ] * New upstream release. * debian/rules: export CFLAGS and LDFLAGS to build with hardening flags. * debian/patches: - Add dont-drop-g.patch to compile non debug builds with -g. - Remove epydoc-exclude-introspect.patch, fix-RSA-generate-exception.patch and no-usr-local.patch: all applied upstream. - Remove setup-dont-check-gmp.patch: not needed anymore. * Add python3-crypto and python3-crypto-dbg packages. - debian/rules: build, install and test for all available versions of Python 2 and Python 3. - debian/control: add Build-Dep on python3-all-dev and python3-all-dbg. [ Jan Dittberner ] * add debian/control: DM-Upload-Allowed: yes -- Sebastian Ramacher Mon, 24 Oct 2011 21:10:19 +0200 python-crypto (2.3-3) unstable; urgency=low * Add patch setup-dont-check-gmp.patch to build _fastmath.so even with multiarch-ified versions of libgmp. -- Sebastian Ramacher Sat, 24 Sep 2011 16:19:11 +0200 python-crypto (2.3-2) unstable; urgency=low * Add Vcs-* entries. * Add patch fix-RSA-generate-exception.patch to fix exception message in Crypto.PublicKey.RSA.generate (Closes: #627959). -- Sebastian Ramacher Thu, 26 May 2011 18:50:11 +0200 python-crypto (2.3-1) unstable; urgency=low * New maintainer (Closes: #532121). * New upstream release (Closes: #625238). * Switch format to 3.0 (quilt). * Use dh instead of cdbs: - Switch to dh_python2 (Closes: #617001). - Drop Build-Depends on quilt, cdbs, ed, python-central. - Raise required debhelper version to 8.1.0. - Drop XB-Python-Version and depend on python:Depends. - Replace XS-Python-Version by X-Python-Version. - Drop Depends on python-dbg in python-crypto-dbg as dh_python2 will add these dependencies anyway. - Remove unused files patch-mangle.sh and pycompat. * Build-Depend on libgmp-dev. * Build-Depend on python-docutils since the documentation uses reST. * Ship documentation in extra package to satisfy lintian (arch-dep-package-has-big-usr-share). * Bump Standards-Version to 3.9.2. * Convert patches to DEP3. * Remove unused patch m68k-no-O3.patch and doc.patch. * Add patch epydoc-exclude-introspect.patch to update the exclude-introspect field in epydoc to the new module locations. * Convert changelog to DEP5. * Run upstream's test suite. * Add DPMT to Uploaders. -- Sebastian Ramacher Mon, 09 May 2011 21:18:17 +0200 python-crypto (2.1.0-2) unstable; urgency=low * Added missing .install file (closes: #576478) * Added myself to Uploaders. -- Andreas Rottmann Wed, 07 Apr 2010 17:24:11 +0200 python-crypto (2.1.0-1) unstable; urgency=low * New upstream version. (closes: #561306). - 2.1.0 includes fix for 160-bit DSS key issue (closes: #433563). - The following patches have been obsoleted (fixed by upstream): errata-2.0.1.patch dfsg-adjust.patch aes256-55bytes.patch arc2-buffer-overflow.patch run-tests.patch - The following patches have been updated: no-usr-local.patch: Remove #!/usr/local/bin/python shebang line. * New patches: - doc.patch: Build doc with local source directory. -- James Cook Sun, 28 Feb 2010 10:17:19 +0800 python-crypto (2.0.1+dfsg1-5) unstable; urgency=low * Added python-old-doctools to Build-Depends (closes: #568047). * Bumped Standards-Version to 3.8.4 (no changes). -- Andreas Rottmann Thu, 11 Feb 2010 00:45:34 +0100 python-crypto (2.0.1+dfsg1-4) unstable; urgency=low * Switched to quilt patches: - errata-2.0.1.patch: Syncs the source tree to the actually released 2.0.1 tarball. - dfsg-adjust.patch: Adjusts the build system to the DFSGified source, to deal with the removed files. - aes256-55bytes.patch: Fixes the AES256 padding bug (Bug#474177). - arc2-buffer-overflow.patch: Fixes the ARC2 buffer overflow (Bug#516660). - m68k-no-O3.patch: Workaround GCC 4.0.1 ICE regarding -O3 on m68k. This patch is deactived -- hopefully this is fixed in recent GCC. * New patches: - run-tests.patch: Non-Debian part of the patch by Kees Cook to run test suite during build (closes: #518202). - no-usr-local.patch: Remove #!/usr/local/bin/python shebang line from Util/RFC1751.py. * Run test suite during build. * Added ${misc:Depends}. * Added ${shlib:Depends} to python-crypto. * Restored old changelog entries, which seem to got cut off between 2. 0.1+dfsg1-2.1 and 2.0.1+dfsg1-2.3 (by Matthias?). * Typo fix for python-crypto-dbg description: python -> Python. * Use ${binary:Version} instead of ${Source-Version}. * Added debian/watch. * Bump Standards-Version to 3.8.1: - Added Homepage field to debian/control. * Adjust copyright line in debian/copyright. * Move python-crypto-dbg to section 'debug'. * Add XB-Python-Version to python-crypto-dbg. -- Andreas Rottmann Fri, 20 Mar 2009 20:16:38 +0100 python-crypto (2.0.1+dfsg1-3) unstable; urgency=low * Acknowlege NMUs. * Apply fix for CVE-2009-0544 (Buffer overflow in the ARC2 module), and a stand-alone version of the associated testcase (see http://www.openwall.com/lists/oss-security/2009/02/07/1). Closes: #516660. -- Andreas Rottmann Fri, 20 Mar 2009 17:10:55 +0100 python-crypto (2.0.1+dfsg1-2.3) unstable; urgency=low * NMU. * Fix build failure introduced in previous upload; add build dependency on texlive-fonts-recommended. -- Matthias Klose Tue, 15 Jul 2008 18:10:57 +0200 python-crypto (2.0.1+dfsg1-2.2) unstable; urgency=low * NMU. * Fix padding bug in SHA256; this resulted in bad digests whenever (the number of bytes hashed) mod 64 == 55. Closes: #474177. LP: #191683. * Build-depend on texlive-latex-recommended instead of tetex. -- Matthias Klose Sat, 12 Jul 2008 12:44:34 +0200 python-crypto (2.0.1+dfsg1-2.1) unstable; urgency=low * Non-Maintainer upload. * Build the python-crypto-dbg binary package (patch from Matthias Klose). (Closes: #437808) -- Fabio Tranchitella Tue, 04 Sep 2007 20:42:37 +0200 python-crypto (2.0.1+dfsg1-2ubuntu1) gutsy; urgency=low * Merge from Debian unstable. * Remaining Ubuntu changes: - Add -dbg package. - Bump debhelper compat level to 5. - Set Ubuntu maintainer address. -- Steve Kowalik Tue, 29 May 2007 19:41:45 +1000 python-crypto (2.0.1+dfsg1-2) unstable; urgency=low * Acknowledge NMUs (closes: #374807, #373524, #313349). -- Andreas Rottmann Wed, 23 May 2007 14:43:13 +0200 python-crypto (2.0.1+dfsg1-1.2ubuntu1) feisty; urgency=low * Build the extension for the python debug interpreter. * Bump debhelper to v5. * Set Ubuntu maintainer address. -- Matthias Klose Sat, 17 Feb 2007 02:58:24 +0100 python-crypto (2.0.1+dfsg1-1.2build1) edgy; urgency=low * Rebuild to add support for python2.5. -- Matthias Klose Fri, 8 Sep 2006 13:33:18 +0000 python-crypto (2.0.1+dfsg1-1.2) unstable; urgency=low * Non-maintainer upload. * Add missing Provides: ${python:Provides} to debian/control, completing fix for #373524 from the previous NMU. -- Adeodato Simó Mon, 19 Jun 2006 03:06:37 +0200 python-crypto (2.0.1+dfsg1-1.1) unstable; urgency=low * Convert to the updated Python policy using python-central. Closes: #373524. * Support for python2.4 is provided. Closes: #313349. -- Matthias Klose Fri, 16 Jun 2006 01:28:51 +0000 python-crypto (2.0.1+dfsg1-1) unstable; urgency=low * Acknowlegde NMUs (closes: #318055, #318012). * Packaged new upstream version (closes: #325517). - 2.0.1 includes fix for AMD64, presumingly also closes: #297516. -- Andreas Rottmann Tue, 4 Oct 2005 00:10:40 +0200 python-crypto (2.0+dp1-2.3) unstable; urgency=low * NMU. * Add python2.4-crypto package, drop python2.1 and python2.2 packages (closes: #313349). -- Matthias Klose Mon, 29 Aug 2005 07:18:38 +0000 python-crypto (2.0+dp1-2.2) unstable; urgency=low * NMU to fix build failures on some architectures * Remove -O3 gcc option on m68k architecture to fix FTBFS due to an internal compiler error * Standards version 3.6.2 (no changes required) * Relax the versioned build dependency of libgmp3-dev to 4.1.4-8 instead of -9. Some architectures only have -8 at this point which is sufficient. -- Bastian Kleineidam Fri, 12 Aug 2005 11:04:21 +0200 python-crypto (2.0+dp1-2.1) unstable; urgency=low * NMU to make package installable again * Added missing build dependency on (versioned) libgmp3-dev, otherwise the _fastmath module won't be compiled. * Recompile against libgmp3c2 (Closes: #318055) -- Bastian Kleineidam Tue, 9 Aug 2005 10:54:41 +0200 python-crypto (2.0+dp1-2) unstable; urgency=medium * Added missing build-dependency on tetex-bin and tetex-extra (closes: #288602). -- Andreas Rottmann Tue, 4 Jan 2005 17:47:27 +0100 python-crypto (2.0+dp1-1) unstable; urgency=medium * Again remove problematic code from orig tarball, which the NMU did miss (not to mention that the orig tarball from the NMU wasn't pristine and contained .pyc files). Urgency medium, so sarge won't end up with problematic code. * Include the manual in binary packages (closes: #273622). * Switch to CDBS. * Lowercase description synopsis, as suggested by lintian/developer's reference. * Advertice the newly-included (since 2.0) SHA256 module in the description. -- Andreas Rottmann Sat, 1 Jan 2005 14:47:12 +0100 python-crypto (2.0-1) unstable; urgency=medium * NMU. * New upstream version. -- Matthias Klose Tue, 17 Aug 2004 23:44:24 +0200 python-crypto (1.9a6+dp2-1) unstable; urgency=low * Transitioned to Python 2.3. * Removed accidential junk form .orig.tar.gz. -- Andreas Rottmann Sat, 9 Aug 2003 12:41:23 +0200 python-crypto (1.9a6+dp1-2) unstable; urgency=low * Fixed Section (python instead of interpreters). -- Andreas Rottmann Sun, 20 Jul 2003 15:21:37 +0200 python-crypto (1.9a6+dp1-1) unstable; urgency=low * New upstream release. * Bump Standards-Version to 3.6.0 (no changes). -- Andreas Rottmann Sun, 13 Jul 2003 18:26:54 +0200 python-crypto (1.9a4+dp1-4) unstable; urgency=low * Use dh_python. + Build-depend on debhelper >= 4.1.29. + Build-depend on python. * Bump Standards-Version to 3.5.8. -- Andreas Rottmann Thu, 20 Feb 2003 14:55:12 +0100 python-crypto (1.9a4+dp1-3) unstable; urgency=low * Cipher/__init__.py: Remove 'RC5' and 'IDEA' from __all__. -- Andreas Rottmann Fri, 14 Feb 2003 01:10:26 +0100 python-crypto (1.9a4+dp1-2) unstable; urgency=low * debian/control: Added python2.x dependencies to binary packages. * debian/control: Fixed 'Cryptpgraphic' typo (closes: #162884). -- Andreas Rottmann Thu, 7 Nov 2002 22:05:27 +0100 python-crypto (1.9a4+dp1-1) unstable; urgency=low * Removed problematic algorithms from source code. + Added README.Debian with details. + Updated package descriptions. * Include docs in all pythonX.Y-crypto packages. -- Andreas Rottmann Wed, 11 Sep 2002 13:15:45 +0200 python-crypto (1.9a4-1) unstable; urgency=low * Initial Release (closes: #159717) -- Andreas Rottmann Thu, 5 Sep 2002 14:53:33 +0200 debian/python3-crypto.install0000644000000000000000000000041712303173125013477 0ustar usr/lib/python3*/*-packages/*.egg-info usr/lib/python3*/*-packages/Crypto/*.py usr/lib/python3*/*-packages/Crypto/*/*.py usr/lib/python3*/*-packages/Crypto/*/*/*.py usr/lib/python3*/*-packages/Crypto/SelfTest/* usr/lib/python3*/*-packages/Crypto/*/*.cpython-3[0-9]m-*.so debian/python3-crypto-dbg.install0000644000000000000000000000007512303173133014230 0ustar usr/lib/python3*/*-packages/Crypto/*/*.cpython-3[0-9]dm-*.so debian/python-crypto.install0000644000000000000000000000040512173466637013433 0ustar usr/lib/python2*/*-packages/*.egg-info usr/lib/python2*/*-packages/Crypto/*.py usr/lib/python2*/*-packages/Crypto/*/*.py usr/lib/python2*/*-packages/Crypto/*/*/*.py usr/lib/python2*/*-packages/Crypto/SelfTest/* usr/lib/python2*/*-packages/Crypto/*/*[!_][!d].so debian/clean0000644000000000000000000000006312173466637010211 0ustar Doc/apidoc/* src/config.h config.log config.status debian/python-crypto-doc.doc-base0000644000000000000000000000060112173466637014203 0ustar Document: python-crypto Title: PyCrypto API Documentation Author: Dwayne C. Litzenberger Abstract: Python Crypto is a collection of cryptographic algorithms and protocols, implemented for use from Python. This is the API documentation for it. Section: Programming/Python Format: HTML Index: /usr/share/doc/python-crypto-doc/toc.html Files: /usr/share/doc/python-crypto-doc/*.html debian/compat0000644000000000000000000000000212173466637010403 0ustar 9 debian/python3-crypto.docs0000644000000000000000000000000712173466640012770 0ustar README debian/python3-crypto.pydist0000644000000000000000000000004012173466637013357 0ustar pycrypto python3-crypto; PEP386 debian/patches/0000755000000000000000000000000012303213162010606 5ustar debian/patches/reenable-redefined-tests.patch0000644000000000000000000001002312173466637016511 0ustar Description: 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. Author: Sebastian Ramacher Last-Update: 2012-05-28 Forwarded: https://github.com/dlitz/pycrypto/pull/16 diff --git a/lib/Crypto/SelfTest/Cipher/test_pkcs1_oaep.py b/lib/Crypto/SelfTest/Cipher/test_pkcs1_oaep.py index accca61..7ca5c15 100644 --- a/lib/Crypto/SelfTest/Cipher/test_pkcs1_oaep.py +++ b/lib/Crypto/SelfTest/Cipher/test_pkcs1_oaep.py @@ -314,11 +314,12 @@ class PKCS1_OAEP_Tests(unittest.TestCase): # Encrypt/Decrypt messages of length [0..128-2*20-2] for pt_len in xrange(0,128-2*20-2): pt = self.rng(pt_len) - ct = PKCS.encrypt(pt, self.key1024) - pt2 = PKCS.decrypt(ct, self.key1024) + cipher = PKCS.new(self.key1024) + ct = cipher.encrypt(pt) + pt2 = cipher.decrypt(ct) self.assertEqual(pt,pt2) - def testEncryptDecrypt1(self): + def testEncryptDecrypt2(self): # Helper function to monitor what's requested from RNG global asked def localRng(N): @@ -337,7 +338,7 @@ class PKCS1_OAEP_Tests(unittest.TestCase): self.assertEqual(cipher.decrypt(ct), pt) self.failUnless(asked > hashmod.digest_size) - def testEncryptDecrypt2(self): + def testEncryptDecrypt3(self): # Verify that OAEP supports labels pt = self.rng(35) xlabel = self.rng(22) @@ -345,7 +346,7 @@ class PKCS1_OAEP_Tests(unittest.TestCase): ct = cipher.encrypt(pt) self.assertEqual(cipher.decrypt(ct), pt) - def testEncryptDecrypt3(self): + def testEncryptDecrypt4(self): # Verify that encrypt() uses the custom MGF global mgfcalls # Helper function to monitor what's requested from MGF diff --git a/lib/Crypto/SelfTest/PublicKey/test_importKey.py b/lib/Crypto/SelfTest/PublicKey/test_importKey.py index 28a7eee..f7c1edc 100644 --- a/lib/Crypto/SelfTest/PublicKey/test_importKey.py +++ b/lib/Crypto/SelfTest/PublicKey/test_importKey.py @@ -298,7 +298,7 @@ Lr7UkvEtFrRhDDKMtuIIq19FrL4pUIMymPMSLBn3hJLe30Dw48GQM4UCAwEAAQ== self.assertEqual(openssh_1[0], openssh_2[0]) self.assertEqual(openssh_1[1], openssh_2[1]) - def testExportKey4(self): + def testExportKey6(self): key = self.rsa.construct([self.n, self.e, self.d, self.p, self.q, self.pInv]) # Tuple with index #1 is encrypted with 3DES t = map(b,self.rsaKeyEncryptedPEM[1]) @@ -307,12 +307,12 @@ Lr7UkvEtFrRhDDKMtuIIq19FrL4pUIMymPMSLBn3hJLe30Dw48GQM4UCAwEAAQ== pemKey = key.exportKey("PEM", t[0]) self.assertEqual(pemKey, t[1]) - def testExportKey5(self): + def testExportKey7(self): key = self.rsa.construct([self.n, self.e, self.d, self.p, self.q, self.pInv]) derKey = key.exportKey("DER", pkcs=8) self.assertEqual(derKey, self.rsaKeyDER8) - def testExportKey6(self): + def testExportKey8(self): key = self.rsa.construct([self.n, self.e, self.d, self.p, self.q, self.pInv]) pemKey = key.exportKey("PEM", pkcs=8) self.assertEqual(pemKey, b(self.rsaKeyPEM8)) diff --git a/lib/Crypto/SelfTest/Util/test_asn1.py b/lib/Crypto/SelfTest/Util/test_asn1.py index 578dabe..bbd0a39 100644 --- a/lib/Crypto/SelfTest/Util/test_asn1.py +++ b/lib/Crypto/SelfTest/Util/test_asn1.py @@ -156,7 +156,7 @@ class DerSequenceTests(unittest.TestCase): self.assertEqual(der[1:-1],[9]) self.assertEquals(der.encode(), b('0\x0A\x02\x02\x01\x80\x02\x01\x09\x02\x01\x08')) - def testEncode6(self): + def testEncode7(self): # One integer and another type (no matter what it is) der = DerSequence() der.append(0x180L) debian/patches/dont-drop-g.patch0000644000000000000000000000254712173466637014017 0ustar Description: 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. Author: Sebastian Ramacher Origin: vendor Last-Update: 2011-11-12 Forwarded: no diff --git a/setup.py b/setup.py index cda9950..b6ae68c 100644 --- a/setup.py +++ b/setup.py @@ -166,8 +166,6 @@ class PCTBuildExt (build_ext): self.__remove_compiler_option("-DNDEBUG") # Choose our own optimization options - for opt in ["-O", "-O0", "-O1", "-O2", "-O3", "-Os"]: - self.__remove_compiler_option(opt) if self.debug: # Basic optimization is still needed when debugging to compile # the libtomcrypt code. @@ -175,10 +173,7 @@ class PCTBuildExt (build_ext): else: # Speed up execution by tweaking compiler options. This # especially helps the DES modules. - self.__add_compiler_option("-O3") self.__add_compiler_option("-fomit-frame-pointer") - # Don't include debug symbols unless debugging - self.__remove_compiler_option("-g") # Don't include profiling information (incompatible with # -fomit-frame-pointer) self.__remove_compiler_option("-pg") debian/patches/fix-cipher-iv-documentation.patch0000644000000000000000000001101412173466637017173 0ustar Description: Update doctring to document actual behavior. The IV passed to the cipher's new method may not be empty if a mode different from MODE_EBC and MODE_CTR is used. Author: Stefano Rivera Origin: https://github.com/dlitz/pycrypto/commit/cbc13b3f Last-Update: 2012-05-28 diff --git a/lib/Crypto/Cipher/AES.py b/lib/Crypto/Cipher/AES.py index 14f68d8..eb91c5f 100644 --- a/lib/Crypto/Cipher/AES.py +++ b/lib/Crypto/Cipher/AES.py @@ -79,8 +79,7 @@ def new(key, *args, **kwargs): actually the *encrypted* IV which was prefixed to the ciphertext). It is mandatory. - For all other modes, it must be `block_size` bytes longs. It is optional and - when not present it will be given a default value of all zeroes. + For all other modes, it must be `block_size` bytes longs. counter : callable (*Only* `MODE_CTR`). A stateful function that returns the next *counter block*, which is a byte string of `block_size` bytes. diff --git a/lib/Crypto/Cipher/ARC2.py b/lib/Crypto/Cipher/ARC2.py index 7b5f43a..ddcca47 100644 --- a/lib/Crypto/Cipher/ARC2.py +++ b/lib/Crypto/Cipher/ARC2.py @@ -91,8 +91,7 @@ def new(key, *args, **kwargs): actually the *encrypted* IV which was prefixed to the ciphertext). It is mandatory. - For all other modes, it must be `block_size` bytes longs. It is optional and - when not present it will be given a default value of all zeroes. + For all other modes, it must be `block_size` bytes longs. counter : callable (*Only* `MODE_CTR`). A stateful function that returns the next *counter block*, which is a byte string of `block_size` bytes. diff --git a/lib/Crypto/Cipher/Blowfish.py b/lib/Crypto/Cipher/Blowfish.py index 3f12bea..2ce78e9 100644 --- a/lib/Crypto/Cipher/Blowfish.py +++ b/lib/Crypto/Cipher/Blowfish.py @@ -85,8 +85,7 @@ def new(key, *args, **kwargs): actually the *encrypted* IV which was prefixed to the ciphertext). It is mandatory. - For all other modes, it must be `block_size` bytes longs. It is optional and - when not present it will be given a default value of all zeroes. + For all other modes, it must be `block_size` bytes longs. counter : callable (*Only* `MODE_CTR`). A stateful function that returns the next *counter block*, which is a byte string of `block_size` bytes. diff --git a/lib/Crypto/Cipher/CAST.py b/lib/Crypto/Cipher/CAST.py index f08dab3..5f009a7 100644 --- a/lib/Crypto/Cipher/CAST.py +++ b/lib/Crypto/Cipher/CAST.py @@ -88,8 +88,7 @@ def new(key, *args, **kwargs): actually the *encrypted* IV which was prefixed to the ciphertext). It is mandatory. - For all other modes, it must be `block_size` bytes longs. It is optional and - when not present it will be given a default value of all zeroes. + For all other modes, it must be `block_size` bytes longs. counter : callable (*Only* `MODE_CTR`). A stateful function that returns the next *counter block*, which is a byte string of `block_size` bytes. diff --git a/lib/Crypto/Cipher/DES.py b/lib/Crypto/Cipher/DES.py index 2fae42f..17016cb 100644 --- a/lib/Crypto/Cipher/DES.py +++ b/lib/Crypto/Cipher/DES.py @@ -83,8 +83,7 @@ def new(key, *args, **kwargs): actually the *encrypted* IV which was prefixed to the ciphertext). It is mandatory. - For all other modes, it must be `block_size` bytes longs. It is optional and - when not present it will be given a default value of all zeroes. + For all other modes, it must be `block_size` bytes longs. counter : callable (*Only* `MODE_CTR`). A stateful function that returns the next *counter block*, which is a byte string of `block_size` bytes. diff --git a/lib/Crypto/Cipher/DES3.py b/lib/Crypto/Cipher/DES3.py index 7fedac8..56d413b 100644 --- a/lib/Crypto/Cipher/DES3.py +++ b/lib/Crypto/Cipher/DES3.py @@ -96,8 +96,7 @@ def new(key, *args, **kwargs): actually the *encrypted* IV which was prefixed to the ciphertext). It is mandatory. - For all other modes, it must be `block_size` bytes longs. It is optional and - when not present it will be given a default value of all zeroes. + For all other modes, it must be `block_size` bytes longs. counter : callable (*Only* `MODE_CTR`). A stateful function that returns the next *counter block*, which is a byte string of `block_size` bytes. debian/patches/fix-except-shadows-builtin.patch0000644000000000000000000000133512173466637017045 0ustar Description: Fix 'except shadows builtin' error. Thanks to lintian4python for finding it. Author: Sebastian Ramacher Last-Update: 2012-05-28 Forwarded: https://github.com/dlitz/pycrypto/pull/18 diff --git a/lib/Crypto/PublicKey/RSA.py b/lib/Crypto/PublicKey/RSA.py index 99d851d..27c23be 100644 --- a/lib/Crypto/PublicKey/RSA.py +++ b/lib/Crypto/PublicKey/RSA.py @@ -582,7 +582,7 @@ class RSAImplementation(object): if privateKey.isType('OCTET STRING'): return self._importKeyDER(privateKey.payload) - except ValueError, IndexError: + except (ValueError, IndexError): pass raise ValueError("RSA key format is not supported") debian/patches/deprecated-test-methods.patch0000644000000000000000000005227112303200322016346 0ustar Description: Replace deprecated unittest methods 2to3 in Python 3.3 and Python 3.4 convert files differently if they encounter any of the deprecated unittests methods. To circumvent this problem, rename them before running 2to3 Author: Sebastian Ramacher Forwarded: not-needed Last-Update: 2014-02-25 --- python-crypto-2.6.1.orig/lib/Crypto/SelfTest/Cipher/test_pkcs1_oaep.py +++ python-crypto-2.6.1/lib/Crypto/SelfTest/Cipher/test_pkcs1_oaep.py @@ -336,7 +336,7 @@ class PKCS1_OAEP_Tests(unittest.TestCase cipher = PKCS.new(self.key1024, hashmod) ct = cipher.encrypt(pt) self.assertEqual(cipher.decrypt(ct), pt) - self.failUnless(asked > hashmod.digest_size) + self.assertTrue(asked > hashmod.digest_size) def testEncryptDecrypt3(self): # Verify that OAEP supports labels --- python-crypto-2.6.1.orig/lib/Crypto/SelfTest/Hash/common.py +++ python-crypto-2.6.1/lib/Crypto/SelfTest/Hash/common.py @@ -53,11 +53,11 @@ class HashDigestSizeSelfTest(unittest.Te return self.description def runTest(self): - self.failUnless(hasattr(self.hashmod, "digest_size")) - self.assertEquals(self.hashmod.digest_size, self.expected) + self.assertTrue(hasattr(self.hashmod, "digest_size")) + self.assertEqual(self.hashmod.digest_size, self.expected) h = self.hashmod.new() - self.failUnless(hasattr(h, "digest_size")) - self.assertEquals(h.digest_size, self.expected) + self.assertTrue(hasattr(h, "digest_size")) + self.assertEqual(h.digest_size, self.expected) class HashSelfTest(unittest.TestCase): --- python-crypto-2.6.1.orig/lib/Crypto/SelfTest/PublicKey/test_ElGamal.py +++ python-crypto-2.6.1/lib/Crypto/SelfTest/PublicKey/test_ElGamal.py @@ -105,8 +105,8 @@ class ElGamalTest(unittest.TestCase): d = self.convert_tv(tv, as_longs) key = ElGamal.construct(d['key']) ct = key.encrypt(d['pt'], d['k']) - self.assertEquals(ct[0], d['ct1']) - self.assertEquals(ct[1], d['ct2']) + self.assertEqual(ct[0], d['ct1']) + self.assertEqual(ct[1], d['ct2']) def test_decryption(self): for tv in self.tve: @@ -114,7 +114,7 @@ class ElGamalTest(unittest.TestCase): d = self.convert_tv(tv, as_longs) key = ElGamal.construct(d['key']) pt = key.decrypt((d['ct1'], d['ct2'])) - self.assertEquals(pt, d['pt']) + self.assertEqual(pt, d['pt']) def test_signing(self): for tv in self.tvs: @@ -122,8 +122,8 @@ class ElGamalTest(unittest.TestCase): d = self.convert_tv(tv, as_longs) key = ElGamal.construct(d['key']) sig1, sig2 = key.sign(d['h'], d['k']) - self.assertEquals(sig1, d['sig1']) - self.assertEquals(sig2, d['sig2']) + self.assertEqual(sig1, d['sig1']) + self.assertEqual(sig2, d['sig2']) def test_verification(self): for tv in self.tvs: @@ -132,10 +132,10 @@ class ElGamalTest(unittest.TestCase): key = ElGamal.construct(d['key']) # Positive test res = key.verify( d['h'], (d['sig1'],d['sig2']) ) - self.failUnless(res) + self.assertTrue(res) # Negative test res = key.verify( d['h'], (d['sig1']+1,d['sig2']) ) - self.failIf(res) + self.assertFalse(res) def convert_tv(self, tv, as_longs=0): """Convert a test vector from textual form (hexadecimal ascii @@ -163,33 +163,33 @@ class ElGamalTest(unittest.TestCase): def _check_private_key(self, elgObj): # Check capabilities - self.failUnless(elgObj.has_private()) - self.failUnless(elgObj.can_sign()) - self.failUnless(elgObj.can_encrypt()) + self.assertTrue(elgObj.has_private()) + self.assertTrue(elgObj.can_sign()) + self.assertTrue(elgObj.can_encrypt()) # Sanity check key data - self.failUnless(1 Forwarded: yes, https://github.com/dlitz/pycrypto/pull/61 Last-Update: 2013-10-17 diff --git a/lib/Crypto/SelfTest/Random/test__UserFriendlyRNG.py b/lib/Crypto/SelfTest/Random/test__UserFriendlyRNG.py index 771a663..3fd7ad4 100644 --- a/lib/Crypto/SelfTest/Random/test__UserFriendlyRNG.py +++ b/lib/Crypto/SelfTest/Random/test__UserFriendlyRNG.py @@ -39,6 +39,11 @@ try: import multiprocessing + # multiprocessing.Pool uses classes from multiprocessing.synchronize, so we + # need to check if multiprocessing.semaphore will work. Otherwise creating a + # multiprocessing.Pool instance will fail with an ImportError. See Python + # bug #3770 for details. + import multiprocessing.synchronize except ImportError: multiprocessing = None debian/patches/fix-epydoc-ignore.patch0000644000000000000000000000136012173466637015205 0ustar Description: fix exclude-introspect stanza in epydoc-config Author: Sebastian Ramacher Last-Modified: 2012-08-28 Forwarded: https://github.com/dlitz/pycrypto/pull/17 diff --git a/Doc/epydoc-config b/Doc/epydoc-config index 018e461..40209f7 100644 --- a/Doc/epydoc-config +++ b/Doc/epydoc-config @@ -15,6 +15,5 @@ link: PyCrypto.org # The documentation is usually built on a Linux machine; nt.py tries to # import the winrandom module. -exclude-introspect: ^Crypto\.Random\.OSRNG\.nt|Crypto\.Util\.winrandom$ -exclude-introspect: ^Crypto\.Util\.osentropy\.nt$ +exclude-introspect: ^Crypto\.Random\.OSRNG\.nt|Crypto\.Util\.winrandom|Crypto\.Util\.osentropy\.nt$ exclude: ^Crypto\.SelfTest debian/patches/unittest-stream.patch0000644000000000000000000000202212270316734015007 0ustar Description: Fix handling of the output stream in SelfTest Author: Sebastian Ramacher Last-Update: 2014-01-23 Forwarded: https://github.com/dlitz/pycrypto/pull/39 Applied-Upstream: yes diff --git a/lib/Crypto/SelfTest/__init__.py b/lib/Crypto/SelfTest/__init__.py index 40b3969..7110cd2 100644 --- a/lib/Crypto/SelfTest/__init__.py +++ b/lib/Crypto/SelfTest/__init__.py @@ -66,11 +66,13 @@ def run(module=None, verbosity=0, stream=None, tests=None, config=None, **kwargs raise ValueError("'module' and 'tests' arguments are mutually exclusive") if stream is None: kwargs['stream'] = StringIO() + else: + kwargs['stream'] = stream runner = unittest.TextTestRunner(verbosity=verbosity, **kwargs) result = runner.run(suite) if not result.wasSuccessful(): if stream is None: - sys.stderr.write(stream.getvalue()) + sys.stderr.write(kwargs['stream'].getvalue()) raise SelfTestError("Self-test failed", result) return result debian/patches/fix-unresolved-reference-size.patch0000644000000000000000000000112612173466637017533 0ustar Description: 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. Author: Sebastian Ramacher Last-Update: 2011-11-16 Forwarded: http://lists.dlitz.net/pipermail/pycrypto/2011q4/000514.html diff --git a/src/_fastmath.c b/src/_fastmath.c index eff3e29..5882f3d 100644 --- a/src/_fastmath.c +++ b/src/_fastmath.c @@ -998,7 +998,7 @@ cleanup: -INLINE size_t size (mpz_t n) +static INLINE size_t size (mpz_t n) { return mpz_sizeinbase (n, 2); } -- 1.7.7.2 debian/patches/series0000644000000000000000000000042412303200216012017 0ustar dont-drop-g.patch fix-unresolved-reference-size.patch fix-epydoc-ignore.patch fix-cipher-iv-documentation.patch reenable-redefined-tests.patch fix-py3-errors.patch fix-except-shadows-builtin.patch multiprocessing-test.patch unittest-stream.patch deprecated-test-methods.patch debian/patches/fix-py3-errors.patch0000644000000000000000000000365512173466637014477 0ustar Description: Fix Python 3 erros uncovered by reenable-redefined-tests.patch. Author: Sebastian Ramacher Last-Update: 2012-05-28 Forwarded: https://github.com/dlitz/pycrypto/pull/16 diff --git a/lib/Crypto/PublicKey/RSA.py b/lib/Crypto/PublicKey/RSA.py index 99d851d..ec04625 100644 --- a/lib/Crypto/PublicKey/RSA.py +++ b/lib/Crypto/PublicKey/RSA.py @@ -348,9 +348,9 @@ class _RSAobj(pubkey.pubkey): nb = long_to_bytes(self.n) if bord(eb[0]) & 0x80: eb=bchr(0x00)+eb if bord(nb[0]) & 0x80: nb=bchr(0x00)+nb - keyparts = [ 'ssh-rsa', eb, nb ] - keystring = ''.join([ struct.pack(">I",len(kp))+kp for kp in keyparts]) - return 'ssh-rsa '+binascii.b2a_base64(keystring)[:-1] + keyparts = [ b('ssh-rsa'), eb, nb ] + keystring = b('').join([ struct.pack(">I",len(kp))+kp for kp in keyparts]) + return b('ssh-rsa ')+binascii.b2a_base64(keystring)[:-1] # DER format is always used, even in case of PEM, which simply # encodes it into BASE64. diff --git a/lib/Crypto/SelfTest/PublicKey/test_importKey.py b/lib/Crypto/SelfTest/PublicKey/test_importKey.py index f7c1edc..0e41577 100644 --- a/lib/Crypto/SelfTest/PublicKey/test_importKey.py +++ b/lib/Crypto/SelfTest/PublicKey/test_importKey.py @@ -104,7 +104,7 @@ Lr7UkvEtFrRhDDKMtuIIq19FrL4pUIMymPMSLBn3hJLe30Dw48GQM4UCAwEAAQ== -----END PUBLIC KEY-----''' # Obtained using 'ssh-keygen -i -m PKCS8 -f rsaPublicKeyPEM' - rsaPublicKeyOpenSSH = '''ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAQQC/HieQCqCLI1EaXBKBrm2TMSw+/pE/ky6+1JLxLRa0YQwyjLbiCKtfRay+KVCDMpjzEiwZ94SS3t9A8OPBkDOF comment\n''' + rsaPublicKeyOpenSSH = b('''ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAQQC/HieQCqCLI1EaXBKBrm2TMSw+/pE/ky6+1JLxLRa0YQwyjLbiCKtfRay+KVCDMpjzEiwZ94SS3t9A8OPBkDOF comment\n''') # The private key, in PKCS#1 format encoded with DER rsaKeyDER = a2b_hex( debian/python-crypto-doc.docs0000644000000000000000000000002212173466637013453 0ustar Doc/apidoc/*.html debian/control0000644000000000000000000000724212303213020010560 0ustar Source: python-crypto Section: python Priority: optional Maintainer: Sebastian Ramacher Uploaders: Andreas Rottmann , Debian Python Modules Team Build-Depends: debhelper (>= 9), dh-python, python-all-dev, python-all-dbg, libgmp-dev, python3-all-dev (>= 3.3.2-5~), python3-all-dbg Build-Depends-Indep: python-epydoc, python-docutils X-Python-Version: >= 2.1 X-Python3-Version: >= 3.0 Standards-Version: 3.9.5 Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-crypto/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-crypto/trunk/ Homepage: http://www.pycrypto.org/ XS-Testsuite: autopkgtest Package: python-crypto Architecture: any Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends} Provides: ${python:Provides} Suggests: python-crypto-dbg, python-crypto-doc Breaks: python-keyring (<= 0.7.1-1) Description: cryptographic algorithms and protocols for Python A collection of cryptographic algorithms and protocols, implemented for use from Python. Among the contents of the package: . * Hash functions: HMAC, MD2, MD4, MD5, RIPEMD160, SHA, SHA256. * Block encryption algorithms: AES, ARC2, Blowfish, CAST, DES, Triple-DES. * Stream encryption algorithms: ARC4, simple XOR. * Public-key algorithms: RSA, DSA, ElGamal. * Protocols: All-or-nothing transforms, chaffing/winnowing. * Miscellaneous: RFC1751 module for converting 128-bit keys into a set of English words, primality testing, random number generation. Package: python-crypto-dbg Section: debug Priority: extra Architecture: any Depends: python-crypto (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}, ${python:Depends} Provides: ${python:Provides} Description: cryptographic algorithms and protocols for Python (debug extension) A collection of cryptographic algorithms and protocols, implemented for use from Python. . This package contains the extensions built for the Python debug interpreter. Package: python3-crypto Architecture: any Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends} Provides: ${python3:Provides} Suggests: python3-crypto-dbg, python-crypto-doc Breaks: python3-keyring (<= 0.7.1-1) Description: cryptographic algorithms and protocols for Python 3 A collection of cryptographic algorithms and protocols, implemented for use from Python 3. Among the contents of the package: . * Hash functions: HMAC, MD2, MD4, MD5, RIPEMD160, SHA, SHA256. * Block encryption algorithms: AES, ARC2, Blowfish, CAST, DES, Triple-DES. * Stream encryption algorithms: ARC4, simple XOR. * Public-key algorithms: RSA, DSA, ElGamal. * Protocols: All-or-nothing transforms, chaffing/winnowing. * Miscellaneous: RFC1751 module for converting 128-bit keys into a set of English words, primality testing, random number generation. Package: python3-crypto-dbg Section: debug Priority: extra Architecture: any Depends: python3-crypto (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends} Provides: ${python3:Provides} Description: cryptographic algorithms and protocols for Python 3 (debug extension) A collection of cryptographic algorithms and protocols, implemented for use from Python 3. . This package contains the extensions built for the Python 3 debug interpreter. Package: python-crypto-doc Section: doc Architecture: all Depends: ${misc:Depends} Breaks: python-crypto (<< 2.3) Replaces: python-crypto (<< 2.3) Description: cryptographic algorithms and protocols for Python (documentation) A collection of cryptographic algorithms and protocols, implemented for use from Python. . This package contains technical documentation. debian/python-crypto-dbg.preinst0000644000000000000000000000024312173466637014203 0ustar #!/bin/sh set -e # handle symlink to directory conversion (#700778) DOCDIR=/usr/share/doc/python-crypto-dbg if [ -L $DOCDIR ] ; then rm $DOCDIR fi #DEBHELPER# debian/tests/0000755000000000000000000000000012303213162010321 5ustar debian/tests/python2-all-dbg0000755000000000000000000000033612173466637013202 0ustar #!/bin/bash set -e PYVERS=$(pyversions -vi) for py in $PYVERS ; do python$py-dbg -c "import Crypto.SelfTest; Crypto.SelfTest.run()" \ 2> >( egrep -v "RandomPool_DeprecationWarning|\[[[:digit:]]+ refs\]" >&2 ) done debian/tests/python20000755000000000000000000000020412173466637011674 0ustar #!/bin/bash set -e python -c "import Crypto.SelfTest; Crypto.SelfTest.run()" \ 2> >( grep -v RandomPool_DeprecationWarning >&2 ) debian/tests/python3-all0000755000000000000000000000043012173466637012444 0ustar #!/bin/bash set -e PYVERS=$(py3versions -vi) PYVERS_DEFAULT=$(py3versions -vd) for py in $PYVERS ; do if [ "$py" != "$PYVERS_DEFAULT" ] ; then python$py -c "import Crypto.SelfTest; Crypto.SelfTest.run()" \ 2> >( grep -v RandomPool_DeprecationWarning >&2 ) fi done debian/tests/python2-all0000755000000000000000000000042612173466637012450 0ustar #!/bin/bash set -e PYVERS=$(pyversions -vi) PYVERS_DEFAULT=$(pyversions -vd) for py in $PYVERS ; do if [ "$py" != "$PYVERS_DEFAULT" ] ; then python$py -c "import Crypto.SelfTest; Crypto.SelfTest.run()" \ 2> >( grep -v RandomPool_DeprecationWarning >&2 ) fi done debian/tests/python3-all-dbg0000755000000000000000000000033712173466637013204 0ustar #!/bin/bash set -e PYVERS=$(py3versions -vi) for py in $PYVERS ; do python$py-dbg -c "import Crypto.SelfTest; Crypto.SelfTest.run()" \ 2> >( egrep -v "RandomPool_DeprecationWarning|\[[[:digit:]]+ refs\]" >&2 ) done debian/tests/python30000755000000000000000000000020512173466637011676 0ustar #!/bin/bash set -e python3 -c "import Crypto.SelfTest; Crypto.SelfTest.run()" \ 2> >( grep -v RandomPool_DeprecationWarning >&2 ) debian/tests/control0000644000000000000000000000050612173466637011753 0ustar Tests: python2 Depends: python-crypto Tests: python2-all Depends: python-all, python-crypto Tests: python2-all-dbg Depends: python-all-dbg, python-crypto-dbg Tests: python3 Depends: python3-crypto Tests: python3-all Depends: python3-all, python3-crypto Tests: python3-all-dbg Depends: python3-all-dbg, python3-crypto-dbg debian/rules0000755000000000000000000000134512303200712010237 0ustar #!/usr/bin/make -f # build with -O3 (as upstream does) if noopt is not set ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) export DEB_CFLAGS_MAINT_APPEND=-O3 endif %: dh $@ --with=python2,python3 --buildsystem=pybuild override_dh_clean: # Keep LEGAL/copy/LICENSE.orig dh_clean -XLEGAL/copy/LICENSE.orig override_dh_auto_build-indep: pybuild --build -p $(shell pyversions -vd) pybuild -s custom --build -p $(shell pyversions -vd) \ --build-args="env PYTHONPATH={build_dir} epydoc --config Doc/epydoc-config" override_dh_auto_test: dh_auto_test -- -s custom --test-args="{interpreter} setup.py test" override_dh_strip: dh_strip -X"python3" --dbg-package=python-crypto-dbg dh_strip -X"python2" --dbg-package=python3-crypto-dbg debian/python-crypto.docs0000644000000000000000000000000712173466640012705 0ustar README debian/source/0000755000000000000000000000000012303213162010457 5ustar debian/source/include-binaries0000644000000000000000000000004012262007041013612 0ustar debian/upstream-signing-key.pgp debian/source/format0000644000000000000000000000001412173466637011713 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000017112262006743010220 0ustar version=3 opts=pgpsigurlmangle=s/$/.asc/ \ http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-(\d[\d.]*)\.tar\.gz debian/upstream-signing-key.pgp0000644000000000000000000001114612262007025013757 0ustar  ? Tv3Gk|!)˭R-+~*nM."L}5}mkB $y=!bH䤵i~ZؖwL5&JW4am.X-.taՑ}hbbFܥa4%oƱņ7 lr5_sJ.kV+Ygj>3j /vQġ.:^Z j4iembdJW06 9dXnim F QS y>> },Hv-/\!MW(]34p3 7tkb̏lF_-&2daoL{8OkYS <ġʃڄ!k_2wGbLn܁RCa|a$]&:x`okjb((ivpT6]}xGq5BrU1ᩲOf.#R{M6)%Dwayne Litzenberger 5P9+   9\8X<  ܚЄC~D{6S:&1򒕿q[T;VD+~I얼PzS[䀤ʛ>NgRM/8ʰ c}1s#dy{f'5%YSZ;ꭱIDrŮFǠc}TQܠعAD,ܩ= fF0N"pID~ Rd3v-IpJ|=v c#9>HcTԬ5y)Hρ 硔 ymN&H^ޫ%qj8~  Z8آWOwuzϿU؏dCo&<4* oId"4y-#8 f$L=-٘醴] B6P|!k#Q2P9+   9\o>A0X=em:^l0w|m{(WenALFǵ*~p(>=>Q Κ>}P.>D|9kAr'411d>xVy]svh`E8d𭘸Ą ^aIkR+܉O2!B'5ܔl6Y8Tҝb@{}ҝHne |FϰܠkeMX쑬!B+&/%'A4T@ Sg{sP1h 5z{gq84.szkM'ĞX/vE,+`ZDw)Y4?݇pa9}HjvEmmUhl+^坱kRQ}vcO|xH2Nf^"ha?5a^=ͨXOw"oq(s|0+]m=Dwayne C. Litzenberger (Master Signing Key) s0]KV I am now using subkeys instead of separate keys, so "Master Signing Key" is implied. 9\PLBSl-e:9$ԓ: }T?&UrJm@^Fl0 jK_>\7aFFanRj%bH e9pVh,eN'ÛJW4tw-GJU}^Qf0kیXu])(jTTVtTU)*g2qtuTɐv 0,,gmU_ހ[eah&zc1K brIgL lNQ:jƵS&qaaqӎ0.&֠TAFJ~)RAZDW:;EaJ/ #BM"?"KB! Y9PLS]Դ`"Sm) ~MG[bJ0`PKtr)YL#I"YmU95 1E_?v$B)4_%Dm*)e/A{`pQHŴ!!&i/ K2 FZ*3x FilτmUGi_"6?4eq@%pRH-NL.:J0Oߊ7C$%!إ|i~C&9pT3b##C% NZ \] 9\P"֔2ۮ]S SN_F<((ۭצKE`͖ArE LT*bDnΊעJp1PiaU^N;M 6Y.PX`銪K%{QsBGղI'䥆 gbG;vih*VgKQmL*7]@NW]ItWAĘ`B@ 3*WVzk~J Z링P547bFxҲRLYog v&rLj85Hut``SI<=qTzEhm +``Ba$ J.rWOv +\aؤ1ՋKys+rn/⽳H=~$SksIR+mXggIFn Jr컲[_k čf:KAf <Hܤv~*K+/s^yW A?dknC\HA65mϗHhLĆӓᨃ`Vvg@ T9Y3獸L_3İN\j0 _fX4mC;iGFQ~+\^u Ptn};9x'p/ 0|uZ<@١%tQ~kG]%^*mYrG; &NG0iv =4WX8u kf"aZb"Q31$4,3hkSm:)wOB6J m }G$rn?(]?qB>ihKn3z2f{$z׋U-Bfv6B:, 9 1փS,O= pv5Dƣ aUUܳ_oåAQ%w0ءLkiEdI(dRCe6ыcmnA$V,-=ܾLV|63aDFj(AG!۔[qb+B\y U: \Q{^ ͗/UC2 wrE*?ɵ1Cw=멜!F'ڽ d$Ukp|)]M@j'Vbw4[x(|׷ ',Ss4~P%yKȑ!MqjtFdGgm!('WC R̭WFLwp) J >`v{_0 "Y^9H[u ܛx*#Ⱥ;y$TJ";"黎}NQ \^ bW  K ,w# c$&sHwX;#nNɿ|J qk5BК 9\Exj֬Ri<_EHrcZ֬[7+*j$&KNǷ5^OJD.JX" b{ѨNb,3vhcM+p$YdiS:WĊ溵1 *w 46n:-IA†)vh0˗DuB;nk/w")4FcM/Z+Vrc 6@pY0d8~Zq,wXw_՚.'?}J/LF,|uyfrމ 3Zh[& \~_*92bwx^0} 2r-[Uݙ/dUU@\>P.>Y?@0H3tyL4}"`}g\ueMX1