Merge pull request #310 from offbyone/fix-sporadic-test-failures

Revert a regression in DSS key generation
This commit is contained in:
Jeff Forcier 2014-04-14 18:52:43 -04:00
commit 6dee34648e
2 changed files with 4 additions and 2 deletions

View File

@ -111,9 +111,9 @@ class DSSKey (PKey):
rstr = util.deflate_long(r, 0) rstr = util.deflate_long(r, 0)
sstr = util.deflate_long(s, 0) sstr = util.deflate_long(s, 0)
if len(rstr) < 20: if len(rstr) < 20:
rstr += zero_byte * (20 - len(rstr)) rstr = zero_byte * (20 - len(rstr)) + rstr
if len(sstr) < 20: if len(sstr) < 20:
sstr += zero_byte * (20 - len(sstr)) sstr = zero_byte * (20 - len(sstr)) + sstr
m.add_string(rstr + sstr) m.add_string(rstr + sstr)
return m return m

View File

@ -2,6 +2,8 @@
Changelog Changelog
========= =========
* :bug:`308` Fix regression in dsskey.py that caused sporadic signature
verification failures. Thanks to Chris Rose.
* :support:`290` (also :issue:`292`) Add support for building universal * :support:`290` (also :issue:`292`) Add support for building universal
(Python 2+3 compatible) wheel files during the release process. Courtesy of (Python 2+3 compatible) wheel files during the release process. Courtesy of
Alex Gaynor. Alex Gaynor.