Skip to content

DEP(deps): Update pycryptodome requirement from ~=4.4 to ~=4.5 - #318

Merged
denisneuf merged 1 commit into
mainfrom
dependabot/pip/main/pycryptodome-approx-eq-4.5
Nov 19, 2026
Merged

denisneuf merged 1 commit into
mainfrom
dependabot/pip/main/pycryptodome-approx-eq-4.5

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 18, 2026

Copy link
Copy Markdown
Contributor

Updates the requirements on pycryptodome to permit the latest version.

Release notes

Sourced from pycryptodome's releases.

v4.5.0 - Marseille

New features

  • Added the mode MODE_GCM_SIV to Crypto.Cipher.AES (AES-GCM-SIV, RFC 8452), for authenticated encryption that is resistant to the reuse of a nonce.
  • Added the mode MODE_XTS to Crypto.Cipher.AES (IEEE 1619, NIST SP 800-38E), for the encryption of storage.
  • CTR mode is about 35% faster on short bytes messages.

Breaking changes

  • export_key of RSA and DSA keys raises ValueError for a private key in the 'OpenSSH' format, like ECC keys. It used to silently return the public key, ignoring any passphrase. To export the public key, use key.public_key().export_key('OpenSSH').

Resolved issues

  • Security: the base64 body of a PEM block (for instance, a private key that is not encrypted) was decoded with binascii.a2b_base64, which looks up each character in a table, and could leak the key through a cache side channel. The body is now decoded in constant time, and it is no longer processed by Python string functions that look up characters in a table. Thanks to Li-Chung Chiang.
Changelog

Sourced from pycryptodome's changelog.

4.5.0 (15 November 2026) +++++++++++++++++++++++++++

New features

  • Added the mode MODE_GCM_SIV to Crypto.Cipher.AES (AES-GCM-SIV, RFC 8452), for authenticated encryption that is resistant to the reuse of a nonce.
  • Added the mode MODE_XTS to Crypto.Cipher.AES (IEEE 1619, NIST SP 800-38E), for the encryption of storage.
  • CTR mode is about 35% faster on short bytes messages.

Breaking changes

  • export_key of RSA and DSA keys raises ValueError for a private key in the 'OpenSSH' format, like ECC keys. It used to silently return the public key, ignoring any passphrase. To export the public key, use key.public_key().export_key('OpenSSH').

Resolved issues

  • Security: the base64 body of a PEM block (for instance, a private key that is not encrypted) was decoded with binascii.a2b_base64, which looks up each character in a table, and could leak the key through a cache side channel. The body is now decoded in constant time, and it is no longer processed by Python string functions that look up characters in a table. Thanks to Li-Chung Chiang.

4.4.0 (7 November 2026) +++++++++++++++++++++++++++

New features

  • Added the elliptic curve secp256k1 to Crypto.PublicKey.ECC: key generation, import and export, ECDSA with Crypto.Signature.DSS, and ECDH with Crypto.Protocol.DH.
  • Added the mode 'sec1' to Crypto.Signature.DSS.new, for randomized ECDSA on all Weierstrass curves. Mode 'fips-186-3' does not accept secp256k1, which is not a curve of that standard.
  • GH#759: Added the parameter low_s to Crypto.Signature.DSS.new, for ECDSA signatures in the low-S form (for all curves): signing normalizes s, and verifying rejects a high s.
  • ECDSA signatures in DER encoding are about 5-8x faster.

Resolved issues

  • ECC.import_key raised TypeError instead of ValueError for an OpenSSH public key with an unsupported curve or key type, or with a malformed body.
  • ECC.import_key accepted an OpenSSH key (public or private) whose curve did not match its key type.
  • GH#960: In HPKE, a message rejected by unseal() consumed a sequence number, so all later messages of that context failed too. The sequence number now only advances when unseal() succeeds (RFC 9180, Section 5.2). Thanks to Zulfareen Shaikh.
  • In HPKE, a seal() that raised an exception also consumed a sequence number, so the receiver could not unseal the messages that followed.

4.3.0 (2 November 2026)

... (truncated)

Commits
  • 71fc833 Bump version
  • 7294f13 Decode the body of PEM blocks in constant time
  • 8e11335 RSA, DSA: reject private keys in OpenSSH export
  • bae38d8 Add fast path to CTR mode for short bytes messages
  • f6cbaca Bump test vector version
  • a83025d Add AES-XTS mode (IEEE 1619, NIST SP 800-38E)
  • a1f91a8 Docs: smaller headings for the FAQ questions
  • a6e0364 Docs: list SSE2 among the CPU extensions
  • d2bc52e Docs: revise features page and its layout
  • c0b95b3 Bump test vector version
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [pycryptodome](https://github.com/Legrandin/pycryptodome) to permit the latest version.
- [Release notes](https://github.com/Legrandin/pycryptodome/releases)
- [Changelog](https://github.com/Legrandin/pycryptodome/blob/master/Changelog.rst)
- [Commits](Legrandin/pycryptodome@v4.4.0...v4.5.0)

---
updated-dependencies:
- dependency-name: pycryptodome
  dependency-version: 4.5.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Nov 18, 2026
@denisneuf
denisneuf merged commit d57cd36 into main Nov 19, 2026
3 checks passed
@dependabot
dependabot Bot deleted the dependabot/pip/main/pycryptodome-approx-eq-4.5 branch November 19, 2026 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant