[Python-modules-commits] r17158 - in packages/python-crypto/trunk/debian (4 files)

sramacher-guest at users.alioth.debian.org sramacher-guest at users.alioth.debian.org
Thu May 26 14:44:37 UTC 2011


    Date: Thursday, May 26, 2011 @ 14:44:36
  Author: sramacher-guest
Revision: 17158

* Add Vcs-* entries.
* Add patch to fix exception message in Crypto.PublicKey.RSA.generate

Added:
  packages/python-crypto/trunk/debian/patches/fix-RSA-generate-exception.patch
Modified:
  packages/python-crypto/trunk/debian/changelog
  packages/python-crypto/trunk/debian/control
  packages/python-crypto/trunk/debian/patches/series

Modified: packages/python-crypto/trunk/debian/changelog
===================================================================
--- packages/python-crypto/trunk/debian/changelog	2011-05-26 14:29:18 UTC (rev 17157)
+++ packages/python-crypto/trunk/debian/changelog	2011-05-26 14:44:36 UTC (rev 17158)
@@ -1,3 +1,11 @@
+python-crypto (2.3-2) UNRELEASED; 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 <s.ramacher at gmx.at>  Thu, 26 May 2011 16:22:38 +0200
+
 python-crypto (2.3-1) unstable; urgency=low
 
   * New maintainer (Closes: #532121).

Modified: packages/python-crypto/trunk/debian/control
===================================================================
--- packages/python-crypto/trunk/debian/control	2011-05-26 14:29:18 UTC (rev 17157)
+++ packages/python-crypto/trunk/debian/control	2011-05-26 14:44:36 UTC (rev 17158)
@@ -8,6 +8,8 @@
  python-all-dbg, libgmp-dev, python-epydoc, python-docutils
 X-Python-Version: >= 2.1
 Standards-Version: 3.9.2
+Vcs-Svn: svn://svn.debian.org/svn/python-modules/packages/python-crypto/trunk/
+Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-crypto/trunk/
 Homepage: http://www.pycrypto.org/
 
 Package: python-crypto

Added: packages/python-crypto/trunk/debian/patches/fix-RSA-generate-exception.patch
===================================================================
--- packages/python-crypto/trunk/debian/patches/fix-RSA-generate-exception.patch	                        (rev 0)
+++ packages/python-crypto/trunk/debian/patches/fix-RSA-generate-exception.patch	2011-05-26 14:44:36 UTC (rev 17158)
@@ -0,0 +1,18 @@
+Description: fix exception message in Crypo.PublicKey.RSA.generate
+Author: Sebastian Ramacher <s.ramacher at gmx.at>
+Bug-Debian: http://bugs.debian.org/627959
+Last-Update: 2011-05-26
+
+--- python-crypto-2.3.orig/lib/Crypto/PublicKey/RSA.py
++++ python-crypto-2.3/lib/Crypto/PublicKey/RSA.py
+@@ -203,8 +203,8 @@ class RSAImplementation(object):
+ 
+     def generate(self, bits, randfunc=None, progress_func=None):
+         if bits < 1024 or (bits & 0xff) != 0:
+-            # pubkey.getStrongPrime doesn't like anything that's not a multiple of 128 and > 512
+-            raise ValueError("RSA modulus length must be a multiple of 256 and > 1024")
++            # pubkey.getStrongPrime doesn't like anything that's not a multiple of 256 and >= 1024
++            raise ValueError("RSA modulus length must be a multiple of 256 and >= 1024")
+         rf = self._get_randfunc(randfunc)
+         obj = _RSA.generate_py(bits, rf, progress_func)    # TODO: Don't use legacy _RSA module
+         key = self._math.rsa_construct(obj.n, obj.e, obj.d, obj.p, obj.q, obj.u)


Property changes on: packages/python-crypto/trunk/debian/patches/fix-RSA-generate-exception.patch
___________________________________________________________________
Added: svn:keywords
   + Id

Modified: packages/python-crypto/trunk/debian/patches/series
===================================================================
--- packages/python-crypto/trunk/debian/patches/series	2011-05-26 14:29:18 UTC (rev 17157)
+++ packages/python-crypto/trunk/debian/patches/series	2011-05-26 14:44:36 UTC (rev 17158)
@@ -1,2 +1,3 @@
 no-usr-local.patch
 epydoc-exclude-introspect.patch
+fix-RSA-generate-exception.patch




More information about the Python-modules-commits mailing list