From dd2db1941bcf55f489e240bc80aab3a22a4adbd3e1c35bf45f820a2d7936b872 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 18 Feb 2019 07:38:22 +0000 Subject: [PATCH] Accepting request 676668 from home:jayvdb:django - Update to v 4.0.0 * Removed deprecated modules: + rsa.varblock + rsa.bigfile + rsa._version133 + rsa._version200 * Removed CLI commands that use the VARBLOCK/bigfile format. * Ensured that PublicKey.save_pkcs1() and PrivateKey.save_pkcs1() always return bytes. * Dropped support for Python 2.6 and 3.3. * Dropped support for Psyco. * Miller-Rabin iterations determined by bitsize of key. * Added function `rsa.find_signature_hash()` to return the name of the hashing algorithm used to sign a message. `rsa.verify()` now also returns that name, instead of always returning `True`. * Add support for SHA-224 for PKCS1 signatures. * Transitioned from `requirements.txt` to Pipenv for package management. OBS-URL: https://build.opensuse.org/request/show/676668 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rsa?expand=0&rev=26 --- python-rsa.changes | 20 ++++++++++++++++++++ python-rsa.spec | 11 ++++------- rsa-3.4.2.tar.gz | 3 --- rsa-4.0.tar.gz | 3 +++ 4 files changed, 27 insertions(+), 10 deletions(-) delete mode 100644 rsa-3.4.2.tar.gz create mode 100644 rsa-4.0.tar.gz diff --git a/python-rsa.changes b/python-rsa.changes index 0447e95..4b68c9a 100644 --- a/python-rsa.changes +++ b/python-rsa.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Sat Feb 16 13:51:23 UTC 2019 - John Vandenberg + +- Update to v 4.0.0 + * Removed deprecated modules: + + rsa.varblock + + rsa.bigfile + + rsa._version133 + + rsa._version200 + * Removed CLI commands that use the VARBLOCK/bigfile format. + * Ensured that PublicKey.save_pkcs1() and PrivateKey.save_pkcs1() always return bytes. + * Dropped support for Python 2.6 and 3.3. + * Dropped support for Psyco. + * Miller-Rabin iterations determined by bitsize of key. + * Added function `rsa.find_signature_hash()` to return the name of the + hashing algorithm used to sign a message. `rsa.verify()` now also + returns that name, instead of always returning `True`. + * Add support for SHA-224 for PKCS1 signatures. + * Transitioned from `requirements.txt` to Pipenv for package management. + ------------------------------------------------------------------- Tue Dec 4 12:53:58 UTC 2018 - Matej Cepl diff --git a/python-rsa.spec b/python-rsa.spec index ce6c1ee..cdbd30e 100644 --- a/python-rsa.spec +++ b/python-rsa.spec @@ -1,7 +1,7 @@ # # spec file for package python-rsa # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,13 +19,14 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without tests Name: python-rsa -Version: 3.4.2 +Version: 4.0 Release: 0 Summary: Pure-Python RSA Implementation License: Apache-2.0 Group: Development/Languages/Python URL: http://stuvel.eu/rsa Source: https://files.pythonhosted.org/packages/source/r/rsa/rsa-%{version}.tar.gz +BuildRequires: %{python_module mock} BuildRequires: %{python_module pyasn1 >= 0.1.3} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -57,15 +58,13 @@ PKCS#1 version 1.5. %python_clone -a %{buildroot}%{_bindir}/pyrsa-priv2pub %python_clone -a %{buildroot}%{_bindir}/pyrsa-decrypt -%python_clone -a %{buildroot}%{_bindir}/pyrsa-decrypt-bigfile %python_clone -a %{buildroot}%{_bindir}/pyrsa-encrypt -%python_clone -a %{buildroot}%{_bindir}/pyrsa-encrypt-bigfile %python_clone -a %{buildroot}%{_bindir}/pyrsa-keygen %python_clone -a %{buildroot}%{_bindir}/pyrsa-sign %python_clone -a %{buildroot}%{_bindir}/pyrsa-verify %post -%{python_install_alternative pyrsa-priv2pub pyrsa-decrypt pyrsa-decrypt-bigfile pyrsa-encrypt pyrsa-encrypt-bigfile pyrsa-keygen pyrsa-sign pyrsa-verify} +%{python_install_alternative pyrsa-priv2pub pyrsa-decrypt pyrsa-encrypt pyrsa-keygen pyrsa-sign pyrsa-verify} %preun %python_uninstall_alternative pyrsa-priv2pub @@ -79,9 +78,7 @@ PKCS#1 version 1.5. %license LICENSE %doc CHANGELOG.txt README.md %python_alternative %{_bindir}/pyrsa-decrypt -%python_alternative %{_bindir}/pyrsa-decrypt-bigfile %python_alternative %{_bindir}/pyrsa-encrypt -%python_alternative %{_bindir}/pyrsa-encrypt-bigfile %python_alternative %{_bindir}/pyrsa-keygen %python_alternative %{_bindir}/pyrsa-priv2pub %python_alternative %{_bindir}/pyrsa-sign diff --git a/rsa-3.4.2.tar.gz b/rsa-3.4.2.tar.gz deleted file mode 100644 index 3cbaba4..0000000 --- a/rsa-3.4.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:25df4e10c263fb88b5ace923dd84bf9aa7f5019687b5e55382ffcdb8bede9db5 -size 40956 diff --git a/rsa-4.0.tar.gz b/rsa-4.0.tar.gz new file mode 100644 index 0000000..db95ec5 --- /dev/null +++ b/rsa-4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a836406405730121ae9823e19c6e806c62bbad73f890574fff50efa4122c487 +size 37385