Hello community,

here is the log from the commit of package python-ecdsa for openSUSE:Factory 
checked in at 2014-09-17 17:25:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-ecdsa (Old)
 and      /work/SRC/openSUSE:Factory/.python-ecdsa.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-ecdsa"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-ecdsa/python-ecdsa.changes        
2014-04-26 10:10:57.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-ecdsa.new/python-ecdsa.changes   
2014-09-17 17:25:28.000000000 +0200
@@ -1,0 +2,17 @@
+Mon Sep 15 09:09:24 UTC 2014 - [email protected]
+
+- update to version 0.11:
+  * update NEWS for 0.11 release
+  * VerifyingKey.from_string(): add validate_point= argument
+  * Merge pull request #17 from trezor/master
+  * README: stop claiming py2.5 compatibility.
+  * Merge pull request #18 from alex/patch-2
+  * Merge pull request #16 from alex/patch-1
+  * Remove Python 2.5 from travis.
+  * Added trove classifiers showing versions supported
+  * canonical versions of sigencode methods these enforce low S values,
+    by negating the value (modulo the order) if above order/2
+  * Remove Python 2.5 from travis.
+  * Run tests under PyPy
+
+-------------------------------------------------------------------

Old:
----
  ecdsa-0.10.tar.gz

New:
----
  ecdsa-0.11.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-ecdsa.spec ++++++
--- /var/tmp/diff_new_pack.RohC4p/_old  2014-09-17 17:25:29.000000000 +0200
+++ /var/tmp/diff_new_pack.RohC4p/_new  2014-09-17 17:25:29.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           python-ecdsa
-Version:        0.10
+Version:        0.11
 Release:        0
 Summary:        ECDSA cryptographic signature library (pure python)
 License:        MIT

++++++ ecdsa-0.10.tar.gz -> ecdsa-0.11.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ecdsa-0.10/NEWS new/ecdsa-0.11/NEWS
--- old/ecdsa-0.10/NEWS 2013-10-23 20:43:50.000000000 +0200
+++ new/ecdsa-0.11/NEWS 2014-03-10 23:49:39.000000000 +0100
@@ -1,3 +1,12 @@
+* Release 0.11 (10 Mar 2014)
+
+Add signature-encoding functions "sigencode_{strings,string,der}_canonize"
+which canonicalize the S value (using the smaller of the two possible
+values). Add "validate_point=" argument to VerifyingKey.from_string()
+constructor (defaults to True) which can be used to disable time-consuming
+point validation when importing a pre-validated verifying key. Drop python2.5
+support (untested but not explicitly broken yet), update trove classifiers.
+
 * Release 0.10 (23 Oct 2013)
 
 Make the secp256k1 available in __init__.py too (thanks to Scott Bannert).
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ecdsa-0.10/PKG-INFO new/ecdsa-0.11/PKG-INFO
--- old/ecdsa-0.10/PKG-INFO     2013-10-23 20:47:11.000000000 +0200
+++ new/ecdsa-0.11/PKG-INFO     2014-03-10 23:54:24.000000000 +0100
@@ -1,6 +1,6 @@
-Metadata-Version: 1.0
+Metadata-Version: 1.1
 Name: ecdsa
-Version: 0.10
+Version: 0.11
 Summary: ECDSA cryptographic signature library (pure python)
 Home-page: http://github.com/warner/python-ecdsa
 Author: Brian Warner
@@ -8,3 +8,10 @@
 License: MIT
 Description: UNKNOWN
 Platform: UNKNOWN
+Classifier: Programming Language :: Python
+Classifier: Programming Language :: Python :: 2
+Classifier: Programming Language :: Python :: 2.6
+Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3.2
+Classifier: Programming Language :: Python :: 3.3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ecdsa-0.10/README.md new/ecdsa-0.11/README.md
--- old/ecdsa-0.10/README.md    2013-10-23 20:43:50.000000000 +0200
+++ new/ecdsa-0.11/README.md    2014-02-17 21:48:01.000000000 +0100
@@ -20,7 +20,7 @@
 
 ## Dependencies
 
-This library uses only Python. It requires python2.5 or later versions of the
+This library uses only Python. It requires python2.6 or later versions of the
 python2.x series. It is also compatible with python3.2 and 3.3.
 
 To run the OpenSSL compatibility tests, the 'openssl' tool must be on your
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ecdsa-0.10/ecdsa/_version.py 
new/ecdsa-0.11/ecdsa/_version.py
--- old/ecdsa-0.10/ecdsa/_version.py    2013-10-23 20:47:11.000000000 +0200
+++ new/ecdsa-0.11/ecdsa/_version.py    2014-03-10 23:54:24.000000000 +0100
@@ -2,4 +2,4 @@
 # This file is originally generated from Git information by running 'setup.py
 # version'. Distribution tarballs contain a pre-generated copy of this file.
 
-__version__ = '0.10'
+__version__ = '0.11'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ecdsa-0.10/ecdsa/keys.py new/ecdsa-0.11/ecdsa/keys.py
--- old/ecdsa-0.10/ecdsa/keys.py        2013-10-23 20:43:50.000000000 +0200
+++ new/ecdsa-0.11/ecdsa/keys.py        2014-03-10 23:45:22.000000000 +0100
@@ -30,7 +30,8 @@
         return self
 
     @classmethod
-    def from_string(klass, string, curve=NIST192p, hashfunc=sha1):
+    def from_string(klass, string, curve=NIST192p, hashfunc=sha1,
+                    validate_point=True):
         order = curve.order
         assert len(string) == curve.verifying_key_length, \
                (len(string), curve.verifying_key_length)
@@ -40,7 +41,8 @@
         assert len(ys) == curve.baselen, (len(ys), curve.baselen)
         x = string_to_number(xs)
         y = string_to_number(ys)
-        assert ecdsa.point_is_valid(curve.generator, x, y)
+        if validate_point:
+            assert ecdsa.point_is_valid(curve.generator, x, y)
         from . import ellipticcurve
         point = ellipticcurve.Point(curve.curve, x, y, order)
         return klass.from_public_point(point, curve, hashfunc)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ecdsa-0.10/ecdsa/util.py new/ecdsa-0.11/ecdsa/util.py
--- old/ecdsa-0.10/ecdsa/util.py        2013-10-23 20:43:50.000000000 +0200
+++ new/ecdsa-0.11/ecdsa/util.py        2014-03-10 23:45:10.000000000 +0100
@@ -197,6 +197,24 @@
 def sigencode_der(r, s, order):
     return der.encode_sequence(der.encode_integer(r), der.encode_integer(s))
 
+# canonical versions of sigencode methods
+# these enforce low S values, by negating the value (modulo the order) if 
above order/2
+# see CECKey::Sign() 
https://github.com/bitcoin/bitcoin/blob/master/src/key.cpp#L214
+def sigencode_strings_canonize(r, s, order):
+    if s > order / 2:
+        s = order - s
+    return sigencode_strings(r, s, order)
+
+def sigencode_string_canonize(r, s, order):
+    if s > order / 2:
+        s = order - s
+    return sigencode_string(r, s, order)
+
+def sigencode_der_canonize(r, s, order):
+    if s > order / 2:
+        s = order - s
+    return sigencode_der(r, s, order)
+
 
 def sigdecode_string(signature, order):
     l = orderlen(order)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ecdsa-0.10/setup.py new/ecdsa-0.11/setup.py
--- old/ecdsa-0.10/setup.py     2013-10-23 20:43:50.000000000 +0200
+++ new/ecdsa-0.11/setup.py     2014-02-17 21:48:01.000000000 +0100
@@ -94,4 +94,13 @@
       packages=["ecdsa"],
       license="MIT",
       cmdclass={ "test": Test, "version": Version, "sdist": sdist },
-      )
+      classifiers=[
+          "Programming Language :: Python",
+          "Programming Language :: Python :: 2",
+          "Programming Language :: Python :: 2.6",
+          "Programming Language :: Python :: 2.7",
+          "Programming Language :: Python :: 3",
+          "Programming Language :: Python :: 3.2",
+          "Programming Language :: Python :: 3.3",
+      ],
+)

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to