From c0f6c4cba6621893cac6555b1f7b046ae9bee9ce64af4d7b222b72dd13c5b9eb Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 1 Jun 2023 20:03:55 +0000 Subject: [PATCH] - update to 3.18.0: * Added support for DER BOOLEAN encodings. * The library now compiles on Windows ARM64. Thanks to Niyas Sait. * Resolved issues * GH#722: ``nonce`` attribute was not correctly set for XChaCha20_Poly1305 ciphers. Thanks to Liam Haber. * GH#728: Workaround for a possible x86 emulator bug in Windows for ARM64. * GH#739: OID encoding for arc 2 didn't accept children larger than 39. Thanks to James. * Correctly check that the scalar matches the point when importing an ECC private key. - update to 3.17.0: * Added support for the Counter Mode KDF defined in SP 800-108 Rev 1. * Reduce the minimum tag length for the EAX cipher to 2 bytes. * An RSA object has 4 new properties for the CRT coefficients: ``dp``, ``dq``, ``invq`` and ``invq`` (``invp`` is the same value as the existing ``u``). * GH#526: improved typing for ``RSA.construct``. * GH#534: reduced memory consumption when using a large number of cipher objects. * GH#598: fixed missing error handling for ``Util.number.inverse``. * GH#629: improved typing for ``AES.new`` and the various mode-specific types it returns. Thanks to Greg Werbin. * GH#653: added workaround for an alleged GCC compiler bug that affected Ed25519 code compiled for AVX2. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycryptodomex?expand=0&rev=33 --- python-pycryptodomex.changes | 50 ++++++++++++++++++++++++++++++++++++ python-pycryptodomex.spec | 13 +++++----- v3.16.0.tar.gz | 3 --- v3.18.0.tar.gz | 3 +++ 4 files changed, 60 insertions(+), 9 deletions(-) delete mode 100644 v3.16.0.tar.gz create mode 100644 v3.18.0.tar.gz diff --git a/python-pycryptodomex.changes b/python-pycryptodomex.changes index b024929..d4be7bc 100644 --- a/python-pycryptodomex.changes +++ b/python-pycryptodomex.changes @@ -1,3 +1,53 @@ +------------------------------------------------------------------- +Thu Jun 1 10:13:08 UTC 2023 - Dirk Müller + +- update to 3.18.0: + * Added support for DER BOOLEAN encodings. + * The library now compiles on Windows ARM64. Thanks to Niyas + Sait. + * Resolved issues + * GH#722: ``nonce`` attribute was not correctly set for + XChaCha20_Poly1305 ciphers. Thanks to Liam Haber. + * GH#728: Workaround for a possible x86 emulator bug in Windows + for ARM64. + * GH#739: OID encoding for arc 2 didn't accept children larger + than 39. Thanks to James. + * Correctly check that the scalar matches the point when + importing an ECC private key. + +------------------------------------------------------------------- +Mon Mar 27 09:18:25 UTC 2023 - Dirk Müller + +- update to 3.17.0: + * Added support for the Counter Mode KDF defined in SP 800-108 + Rev 1. + * Reduce the minimum tag length for the EAX cipher to 2 bytes. + * An RSA object has 4 new properties for the CRT coefficients: + ``dp``, ``dq``, ``invq`` and ``invq`` (``invp`` is the same + value as the existing ``u``). + * GH#526: improved typing for ``RSA.construct``. + * GH#534: reduced memory consumption when using a large number + of cipher objects. + * GH#598: fixed missing error handling for + ``Util.number.inverse``. + * GH#629: improved typing for ``AES.new`` and the various + mode-specific types it returns. Thanks to Greg Werbin. + * GH#653: added workaround for an alleged GCC compiler bug + that affected Ed25519 code compiled for AVX2. + * GH#658: attribute ``curve`` of an ECC key was not always + the preferred curve name, as it used to be in v3.15.0 + (independently of the curve name specified when generating + the key). + * GH#637: fixed typing for legacy modules ``PKCS1_v1_5`` and + ``PKCS1_PSS``, as their ``verify()`` returned a boolean. + * GH#664: with OCB mode, nonces of maximum length (15 bytes) + were actually used as 14 bytes nonces. + After this fix, data that was encrypted in past using the + (default) nonce length of 15 bytes can still be decrypted + by reducing the nonce to its first 14 bytes. + * GH#705: improved typing for ``nonce``, ``iv``, and ``IV`` + parameters of cipher objects. + ------------------------------------------------------------------- Tue Dec 6 13:19:32 UTC 2022 - Yogalakshmi Arunachalam diff --git a/python-pycryptodomex.spec b/python-pycryptodomex.spec index 7f8d869..28bd435 100644 --- a/python-pycryptodomex.spec +++ b/python-pycryptodomex.spec @@ -1,7 +1,7 @@ # # spec file for package python-pycryptodomex # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %global skip_python2 1 Name: python-pycryptodomex -Version: 3.16.0 +Version: 3.18.0 Release: 0 Summary: Cryptographic library for Python License: BSD-2-Clause @@ -27,7 +27,8 @@ Group: Development/Languages/Python URL: https://www.pycryptodome.org Source: https://github.com/Legrandin/pycryptodome/archive/v%{version}.tar.gz BuildRequires: %{python_module devel} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros %if !0%{?_no_weakdeps} @@ -81,11 +82,11 @@ touch .separate_namespace %build export LC_ALL=en_US.UTF-8 export CFLAGS="%{optflags}" -%python_build +%pyproject_wheel %install export LC_ALL=en_US.UTF-8 -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %check @@ -98,6 +99,6 @@ popd} %license LICENSE.rst %doc AUTHORS.rst Changelog.rst README.rst %{python_sitearch}/Cryptodome/ -%{python_sitearch}/pycryptodomex-%{version}-py*.egg-info +%{python_sitearch}/pycryptodomex-%{version}.dist-info %changelog diff --git a/v3.16.0.tar.gz b/v3.16.0.tar.gz deleted file mode 100644 index 965ed7d..0000000 --- a/v3.16.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c8f6878f11e6164b663058246d2c3ecc3c445f9cbff03dea97cee80c4223b9ff -size 16548063 diff --git a/v3.18.0.tar.gz b/v3.18.0.tar.gz new file mode 100644 index 0000000..1d4b05b --- /dev/null +++ b/v3.18.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:60f58349c3d62a99bb87665b2a16afda87dc2d537a14aa45aaad1a3748b781ba +size 16720227