14
0

Accepting request 620465 from home:frispete:python

- Update to 3.6.3 (21 June 2018)
  - Resolved issues
    * GH#175: Fixed incorrect results for CTR encryption/decryption
      with more than 8 blocks.
- Update to 3.6.2 (19 June 2018)
  - New features
    * ChaCha20 accepts 96 bit nonces (in addition to 64 bit nonces)
      as defined in RFC7539.
    * Accelerate AES-GCM on x86 using PCLMULQDQ instruction.
    * Accelerate AES-ECB and AES-CTR on x86 by pipelining AESNI
      instructions.
    * As result of the two improvements above, on x86 (Broadwell):
      - AES-ECB and AES-CTR are 3x faster
      - AES-GCM is 9x faster
  - Resolved issues
    * On Windows, MPIR library was stilled pulled in if renamed to
      ``gmp.dll``.
  - Breaks in compatibility
    * In ``Crypto.Util.number``, functions ``floor_div`` and
      ``exact_div`` have been removed. Also, ``ceil_div`` is limited
      to non-negative terms only.
- suggesting libgmp10 and python-cffi
- add license file tag


- version 3.6.3: new build derived from python-pycryptodome 3.6.3

OBS-URL: https://build.opensuse.org/request/show/620465
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycryptodome?expand=0&rev=12
This commit is contained in:
Tomáš Chvátal
2018-07-03 13:27:33 +00:00
committed by Git OBS Bridge
parent cd80d229ba
commit 9d1fb9d448
6 changed files with 158 additions and 18 deletions

View File

@@ -20,13 +20,13 @@
%bcond_without test
%define oldpython python
Name: python-pycryptodome
Version: 3.6.1
Version: 3.6.3
Release: 0
Summary: Cryptographic library for Python
License: BSD-2-Clause
Group: Development/Languages/Python
Url: http://www.pycryptodome.org
Source: https://files.pythonhosted.org/packages/source/p/pycryptodome/pycryptodome-%{version}.tar.gz
Url: https://www.pycryptodome.org
Source: https://pypi.io/packages/source/p/pycryptodome/pycryptodome-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
@@ -37,6 +37,10 @@ Obsoletes: python-pycrypto < %{version}
Provides: %{oldpython}-pycrypto = %{version}
Obsoletes: %{oldpython}-pycrypto < %{version}
%endif
# PyCryptodome uses gmp via cffi as runtime optimization
# would be better, if libgmp* would provide gmp
Suggests: libgmp10
Suggests: python-cffi
%python_subpackages
@@ -44,32 +48,34 @@ Obsoletes: %{oldpython}-pycrypto < %{version}
PyCryptodome is a self-contained Python package of low-level
cryptographic primitives.
PyCryptodome is a fork of PyCrypto. It brings several enhancements
with respect to the last official version of PyCrypto (2.6.1),
for instance:
PyCryptodome is a fork of PyCrypto, residing in the `Crypto`
namespace for better drop-in compatibility, while it brings several
enhancements with respect to the last official version of PyCrypto
(2.6.1), for instance:
* Authenticated encryption modes (GCM, CCM, EAX, SIV, OCB)
* Accelerated AES on Intel platforms via AES-NI
* First class support for PyPy
* Elliptic curves cryptography (NIST P-256 curve only)
* Better and more compact API (`nonce` and `iv` attributes for ciphers,
automatic generation of random nonces and IVs, simplified CTR cipher mode,
and more)
* Better and more compact API (`nonce` and `iv` attributes for
ciphers, automatic generation of random nonces and IVs, simplified
CTR cipher mode, and more)
* SHA-3 (including SHAKE XOFs) and BLAKE2 hash algorithms
* Salsa20 and ChaCha20 stream ciphers
* scrypt and HKDF
* Deterministic (EC)DSA
* Password-protected PKCS#8 key containers
* Shamir's Secret Sharing scheme
* Random numbers get sourced directly from the OS (and not from a CSPRNG in userspace)
* Random numbers get sourced directly from the OS (and not from a
CSPRNG in userspace)
* Simplified install process, including better support for Windows
* Cleaner RSA and DSA key generation (largely based on FIPS 186-4)
* Major clean ups and simplification of the code base
PyCryptodome is not a wrapper to a separate C library like *OpenSSL*.
To the largest possible extent, algorithms are implemented in pure Python.
Only the pieces that are extremely critical to performance (e.g. block ciphers)
are implemented as C extensions.
To the largest possible extent, algorithms are implemented in pure
Python. Only the pieces that are extremely critical to performance
(e.g. block ciphers) are implemented as C extensions.
%prep
%setup -q -n pycryptodome-%{version}
@@ -88,8 +94,8 @@ export CFLAGS="%{optflags}"
%endif
%files %{python_files}
%defattr(-,root,root,-)
%doc AUTHORS.rst Changelog.rst LICENSE.rst README.rst
%license LICENSE.rst
%doc AUTHORS.rst Changelog.rst README.rst
%{python_sitearch}/*
%changelog