Hello community, here is the log from the commit of package python-cryptography for openSUSE:Factory checked in at 2018-08-28 09:22:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-cryptography (Old) and /work/SRC/openSUSE:Factory/.python-cryptography.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-cryptography" Tue Aug 28 09:22:11 2018 rev:41 rq:630716 version:2.3.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-cryptography/python-cryptography.changes 2018-07-21 10:09:10.751185036 +0200 +++ /work/SRC/openSUSE:Factory/.python-cryptography.new/python-cryptography.changes 2018-08-28 09:22:53.976538805 +0200 @@ -1,0 +2,7 @@ +Tue Aug 21 07:43:31 UTC 2018 - tchva...@suse.com + +- Update to 2.3.1: + * updated tests for upstream wycheproof changes + * many other tiny test tweaks + +------------------------------------------------------------------- Old: ---- cryptography-2.3.tar.gz cryptography-2.3.tar.gz.asc cryptography_vectors-2.3.tar.gz New: ---- cryptography-2.3.1.tar.gz cryptography-2.3.1.tar.gz.asc cryptography_vectors-2.3.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-cryptography.spec ++++++ --- /var/tmp/diff_new_pack.9RqQON/_old 2018-08-28 09:22:54.736541176 +0200 +++ /var/tmp/diff_new_pack.9RqQON/_new 2018-08-28 09:22:54.736541176 +0200 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without python2 Name: python-cryptography -Version: 2.3 +Version: 2.3.1 Release: 0 Summary: Python library which exposes cryptographic recipes and primitives License: Apache-2.0 OR BSD-3-Clause ++++++ cryptography-2.3.tar.gz -> cryptography-2.3.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cryptography-2.3/CHANGELOG.rst new/cryptography-2.3.1/CHANGELOG.rst --- old/cryptography-2.3/CHANGELOG.rst 2018-07-18 13:21:39.000000000 +0200 +++ new/cryptography-2.3.1/CHANGELOG.rst 2018-08-14 19:24:28.000000000 +0200 @@ -1,6 +1,14 @@ Changelog ========= +.. _v2-3-1: + +2.3.1 - 2018-08-14 +~~~~~~~~~~~~~~~~~~ + +* Updated Windows, macOS, and ``manylinux1`` wheels to be compiled with + OpenSSL 1.1.0i. + .. _v2-3: 2.3 - 2018-07-18 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cryptography-2.3/PKG-INFO new/cryptography-2.3.1/PKG-INFO --- old/cryptography-2.3/PKG-INFO 2018-07-18 13:58:11.000000000 +0200 +++ new/cryptography-2.3.1/PKG-INFO 2018-08-14 19:37:32.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: cryptography -Version: 2.3 +Version: 2.3.1 Summary: cryptography is a package which provides cryptographic recipes and primitives to Python developers. Home-page: https://github.com/pyca/cryptography Author: The cryptography developers @@ -101,7 +101,7 @@ Classifier: Programming Language :: Python :: Implementation :: PyPy Classifier: Topic :: Security :: Cryptography Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.* -Provides-Extra: docstest -Provides-Extra: test Provides-Extra: docs +Provides-Extra: test Provides-Extra: pep8test +Provides-Extra: docstest diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cryptography-2.3/docs/x509/reference.rst new/cryptography-2.3.1/docs/x509/reference.rst --- old/cryptography-2.3/docs/x509/reference.rst 2018-07-18 13:21:39.000000000 +0200 +++ new/cryptography-2.3.1/docs/x509/reference.rst 2018-08-14 19:24:23.000000000 +0200 @@ -615,7 +615,7 @@ ... x509.NameAttribute(NameOID.COMMON_NAME, u'cryptography.io'), ... ])) >>> builder = builder.not_valid_before(datetime.datetime.today() - one_day) - >>> builder = builder.not_valid_after(datetime.datetime(2018, 8, 2)) + >>> builder = builder.not_valid_after(datetime.datetime.today() + (one_day * 30)) >>> builder = builder.serial_number(x509.random_serial_number()) >>> builder = builder.public_key(public_key) >>> builder = builder.add_extension( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cryptography-2.3/src/cryptography/__about__.py new/cryptography-2.3.1/src/cryptography/__about__.py --- old/cryptography-2.3/src/cryptography/__about__.py 2018-07-18 13:21:39.000000000 +0200 +++ new/cryptography-2.3.1/src/cryptography/__about__.py 2018-08-14 19:24:28.000000000 +0200 @@ -14,7 +14,7 @@ " and primitives to Python developers.") __uri__ = "https://github.com/pyca/cryptography" -__version__ = "2.3" +__version__ = "2.3.1" __author__ = "The cryptography developers" __email__ = "cryptography-...@python.org" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cryptography-2.3/src/cryptography.egg-info/PKG-INFO new/cryptography-2.3.1/src/cryptography.egg-info/PKG-INFO --- old/cryptography-2.3/src/cryptography.egg-info/PKG-INFO 2018-07-18 13:58:11.000000000 +0200 +++ new/cryptography-2.3.1/src/cryptography.egg-info/PKG-INFO 2018-08-14 19:37:32.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: cryptography -Version: 2.3 +Version: 2.3.1 Summary: cryptography is a package which provides cryptographic recipes and primitives to Python developers. Home-page: https://github.com/pyca/cryptography Author: The cryptography developers @@ -101,7 +101,7 @@ Classifier: Programming Language :: Python :: Implementation :: PyPy Classifier: Topic :: Security :: Cryptography Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.* -Provides-Extra: docstest -Provides-Extra: test Provides-Extra: docs +Provides-Extra: test Provides-Extra: pep8test +Provides-Extra: docstest diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cryptography-2.3/tests/wycheproof/test_aes.py new/cryptography-2.3.1/tests/wycheproof/test_aes.py --- old/cryptography-2.3/tests/wycheproof/test_aes.py 2018-07-18 13:21:39.000000000 +0200 +++ new/cryptography-2.3.1/tests/wycheproof/test_aes.py 2018-08-14 19:24:28.000000000 +0200 @@ -8,6 +8,7 @@ import pytest +from cryptography.exceptions import InvalidTag from cryptography.hazmat.backends.interfaces import CipherBackend from cryptography.hazmat.primitives import padding from cryptography.hazmat.primitives.ciphers import ( @@ -67,11 +68,19 @@ dec.authenticate_additional_data(aad) computed_msg = dec.update(ct) + dec.finalize() assert computed_msg == msg - else: - # All invalid GCM tests are IV len 0 right now - assert len(iv) == 0 + elif len(iv) == 0: with pytest.raises(ValueError): Cipher(algorithms.AES(key), modes.GCM(iv), backend) + else: + dec = Cipher( + algorithms.AES(key), + modes.GCM(iv, tag, min_tag_length=len(tag)), + backend + ).decryptor() + dec.authenticate_additional_data(aad) + dec.update(ct) + with pytest.raises(InvalidTag): + dec.finalize() @pytest.mark.requires_backend_interface(interface=CipherBackend) @@ -89,8 +98,9 @@ assert computed_ct == ct + tag computed_msg = aesgcm.decrypt(iv, ct + tag, aad) assert computed_msg == msg - else: - # All invalid GCM tests are IV len 0 right now - assert len(iv) == 0 + elif len(iv) == 0: with pytest.raises(ValueError): aesgcm.encrypt(iv, msg, aad) + else: + with pytest.raises(InvalidTag): + aesgcm.decrypt(iv, ct + tag, aad) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cryptography-2.3/tests/wycheproof/test_ecdh.py new/cryptography-2.3.1/tests/wycheproof/test_ecdh.py --- old/cryptography-2.3/tests/wycheproof/test_ecdh.py 2018-07-18 13:21:39.000000000 +0200 +++ new/cryptography-2.3.1/tests/wycheproof/test_ecdh.py 2018-08-14 19:24:28.000000000 +0200 @@ -50,10 +50,10 @@ "ecdh_secp521r1_test.json", ) def test_ecdh(backend, wycheproof): - curve = _CURVES[wycheproof.testcase["curve"]] + curve = _CURVES[wycheproof.testgroup["curve"]] if curve is None: pytest.skip( - "Unsupported curve ({})".format(wycheproof.testcase["curve"]) + "Unsupported curve ({})".format(wycheproof.testgroup["curve"]) ) _skip_exchange_algorithm_unsupported(backend, ec.ECDH(), curve) ++++++ cryptography_vectors-2.3.tar.gz -> cryptography_vectors-2.3.1.tar.gz ++++++ /work/SRC/openSUSE:Factory/python-cryptography/cryptography_vectors-2.3.tar.gz /work/SRC/openSUSE:Factory/.python-cryptography.new/cryptography_vectors-2.3.1.tar.gz differ: char 5, line 1