Pycryptodome

Latest version: v3.22.0

Safety actively analyzes 723177 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 11

3.17.0

++++++++++++++++++++++++++

New features
---------------
* 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``).

Resolved issues
---------------
* GH526: improved typing for ``RSA.construct``.
* GH534: reduced memory consumption when using a large number
of cipher objects.
* GH598: fixed missing error handling for ``Util.number.inverse``.
* GH629: improved typing for ``AES.new`` and the various
mode-specific types it returns. Thanks to Greg Werbin.
* GH653: added workaround for an alleged GCC compiler bug
that affected Ed25519 code compiled for AVX2.
* GH658: 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).
* GH637: fixed typing for legacy modules ``PKCS1_v1_5`` and ``PKCS1_PSS``,
as their ``verify()`` returned a boolean.
* GH664: 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.
* GH705: improved typing for ``nonce``, ``iv``, and ``IV`` parameters
of cipher objects.

Other changes
-------------
* Build PyPy wheels only for versions 3.8 and 3.9, and not for 3.7 anymore.

3.16.0

Not secure
++++++++++++++++++++++++++

New features
------------
* Build wheels for musl Linux. Thanks to Ben Raz.

Resolved issues
---------------
* GH639: ARC4 now also works with 'keys' as short as 8 bits.
* GH669: fix segfaults when running in a manylinux2010 i686 image.

3.15.0

Not secure
++++++++++++++++++++++++++

New features
------------
* Add support for curves Ed25519 and Ed448, including export and import of keys.
* Add support for EdDSA signatures.
* Add support for Asymmetric Key Packages (RFC5958) to import private keys.

Resolved issues
---------------
* GH620: for ``Crypto.Util.number.getPrime`` , do not sequentially
scan numbers searching for a prime.

3.14.1

Not secure
++++++++++++++++++++++++++

Resolved issues
---------------
* GH595: Fixed memory leak for GMP integers.
Thanks to Witalij Siebert and Pablo Quílez.

3.14.0

Not secure
++++++++++++++++++++++++++

New features
------------
* Add support for curve NIST P-192.

3.13.0

Not secure
++++++++++++++++++++++++++

New features
------------
* Add support for curve NIST P-224.

Resolved issues
---------------
* GH590: Fixed typing info for ``Crypto.PublicKey.ECC``.

Other changes
-------------
* Relaxed ECDSA requirements for FIPS 186 signatures and accept any SHA-2 or SHA-3 hash.
``sign()`` and ``verify()`` will be performed even if the hash is stronger than the ECC key.

Page 2 of 11

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.