Sync from SUSE:SLFO:Main python-pycryptodome revision eeb979f677101ff235a07ae0729ec857

This commit is contained in:
Adrian Schröter 2024-12-13 12:02:18 +01:00
parent df6e563a5b
commit b0fb546195
4 changed files with 87 additions and 36 deletions

BIN
pycryptodome-3.18.0.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
pycryptodome-3.21.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,57 @@
-------------------------------------------------------------------
Fri Oct 18 08:53:31 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 3.21.0:
* By setting the PYCRYPTODOME_DISABLE_GMP environment variable,
the GMP library will not be used even if detected.
* Add support for Curve25519 / X25519.
* Add support for Curve448 / X448.
* Add attribute curve to EccPoint and EccXPoint classes, with
the canonical name of the curve.
* GH#781: the label for the SP800_108_Counter KDF may now
contain zero bytes. Thanks to Julien Rische.
* GH#814: RSA keys for PSS can be imported.
* GH#810: fixed negation of Ed25519 points.
* GH#819: accept an RFC5916 ECPrivateKey even if it doesn't
contain any of the optional elements (parameters [0] and
publicKey[1]).
* Remove support for Python 3.5.
-------------------------------------------------------------------
Fri Jan 26 21:11:37 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 3.20.0:
* Added support for TurboSHAKE128 and TurboSHAKE256.
* Added method Crypto.Hash.new() to generate a hash object
given a hash name.
* Added support for AES-GCM encryption of PBES2 and PKCS#8
containers.
* Added support for SHA-2 and SHA-3 algorithms in PBKDF2 when
creating PBES2 and PKCS#8 containers.
* Export of RSA keys accepts the prot_params dictionary as
parameter to control the number of iterations for PBKDF2 and
scrypt.
* C unit tests also run on non-x86 architectures.
* GH#787: Fixed autodetect logic for GCC 14 in combination with
LTO.
-------------------------------------------------------------------
Sat Dec 30 16:53:24 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 3.19.1 (bsc#1218564, CVE-2023-52323):
* Fixed a side-channel leakage with OAEP decryption that could be
exploited to carry out a Manger attack
-------------------------------------------------------------------
Mon Nov 27 15:55:12 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 3.19.0:
* The ``update()`` methods of TupleHash128 and TupleHash256
objects can now hash multiple items (byte strings) at once.
* Added support for ECDH, with ``Crypto.Protocol.DH``.
* GH#754: due to a bug in ``cffi``, do not use it on Windows
with Python 3.12+.
-------------------------------------------------------------------
Wed Jun 28 13:36:37 UTC 2023 - ecsos <ecsos@opensuse.org>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-pycryptodome
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,18 +16,19 @@
#
%define oldpython python
%define min_version %{lua:rpm.expand("%{version}"):gsub("^(%d+%.%d+).*", "%1")}
%{?sle15_python_module_pythons}
Name: python-pycryptodome
Version: 3.18.0
Version: 3.21.0
Release: 0
Summary: Cryptographic library for Python
License: BSD-2-Clause
URL: https://www.pycryptodome.org
Source: https://github.com/Legrandin/pycryptodome/archive/v%{version}.tar.gz#/pycryptodome-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Provides: python-pycrypto = %{version}
@ -38,10 +39,6 @@ Obsoletes: python-pycrypto < %{version}
Suggests: libgmp10
Suggests: python-cffi
%endif
%ifpython2
Provides: %{oldpython}-pycrypto = %{version}
Obsoletes: %{oldpython}-pycrypto < %{version}
%endif
%python_subpackages
%description
@ -85,11 +82,11 @@ Python. Only the pieces that are extremely critical to performance
%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