Skip to content

build(deps): bump pycryptodome from 4.5.0 to 4.6.0 - #476

Open
dependabot[bot] wants to merge 1 commit into
devfrom
dependabot/uv/dev/pycryptodome-4.6.0
Open

dependabot[bot] wants to merge 1 commit into
devfrom
dependabot/uv/dev/pycryptodome-4.6.0

Conversation

@dependabot

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

Copy link
Copy Markdown
Contributor

Bumps pycryptodome from 4.5.0 to 4.6.0.

Release notes

Sourced from pycryptodome's releases.

v4.6.0 - Nice

New features

  • New module Crypto.PublicKey.SLHDSA, for SLH-DSA keys (FIPS 205), with all twelve parameter sets (SHA2 and SHAKE, categories 1, 3 and 5, small or fast). The algorithms of FIPS 205 are in Python; the functions that compute most of the hashes (WOTS+ chains, XMSS and FORS tree nodes) are in C, on top of the SHA-2 and Keccak code of PyCryptodome. The C functions compute several hashes at once where the CPU allows it: 4 SHA-256 hashes with the Intel SHA extensions (interleaved) or the ARMv8 SHA-256 instructions, 8 SHA-256 hashes with AVX2 (when there are no SHA extensions), and 4 SHAKE256 hashes with AVX2 and BMI2 (4-way Keccak). The WOTS+ chains of a key pair are computed in one call to C.
  • SLH-DSA keys can be exported and imported as defined in RFC 9909 (pure SLH-DSA): public keys as X.509 SubjectPublicKeyInfo (also from certificates), private keys as PKCS#8 OneAsymmetricKey (also encrypted), in DER or PEM.
  • New module Crypto.Signature.slhdsa, for SLH-DSA and HashSLH-DSA signatures (FIPS 205), hedged (default) or deterministic, with an optional context.
  • SLH-DSA signing, key generation and construct() (which checks the private key) accept a parameter threads, to compute the XMSS and FORS trees on several threads. With 8 threads, signing with the s parameter sets is 3.5x to 5x faster.
  • Crypto.PublicKey.SLHDSA also supports the six parameter sets of the initial public draft of NIST SP 800-230 (April 2026), such as SLH_DSA_SHA2_128_24: smaller signatures and faster verification, but each key must sign at most 2^24 messages, and key generation and signing take minutes (use threads). The draft may still change: their support is experimental, and they must not be used in production.
  • New self-test option --include-very-slow-tests, for the tests marked very_slow (like key generation and signing with the SP 800-230 parameter sets, which take about half an hour): they do not run otherwise.
  • New module Crypto.Cipher.AEGIS, for the authenticated ciphers AEGIS-128L and AEGIS-256 (RFC 10032), with 16- or 32-byte tags. They use the AES instructions of the CPU (AES-NI or the ARMv8 Cryptography Extensions): AEGIS-128L is then 3 to 5 times faster than AES-GCM. Without them, the AES round is bitsliced (constant time), with NEON on ARM and SSE2 on x86; on 64-bit ARM, AEGIS-128L is then still faster than ChaCha20-Poly1305.

Breaking changes

  • In Crypto.Signature.mldsa.new(), the context can only be passed as a keyword argument (context=), as for Crypto.Signature.slhdsa.new().

Resolved issues

  • Security, GH#968: ECC.construct(), and so ECC.import_key(), accepted the point at infinity as a public key on the NIST P curves and secp256k1 (for instance, 04 followed by zero bytes in a SubjectPublicKeyInfo). ECDSA signatures for such a key can be forged without any secret. It is now rejected with ValueError. Thanks to Zulfareen Shaikh.
  • Security, GH#969: DSA.construct(), and so DSA.import_key(), accepted public keys equal to 1 or outside the subgroup of order q (for instance, p - 1).

... (truncated)

Changelog

Sourced from pycryptodome's changelog.

4.6.0 (22 November 2026) +++++++++++++++++++++++++++

New features

  • New module Crypto.PublicKey.SLHDSA, for SLH-DSA keys (FIPS 205), with all twelve parameter sets (SHA2 and SHAKE, categories 1, 3 and 5, small or fast). The algorithms of FIPS 205 are in Python; the functions that compute most of the hashes (WOTS+ chains, XMSS and FORS tree nodes) are in C, on top of the SHA-2 and Keccak code of PyCryptodome. The C functions compute several hashes at once where the CPU allows it: 4 SHA-256 hashes with the Intel SHA extensions (interleaved) or the ARMv8 SHA-256 instructions, 8 SHA-256 hashes with AVX2 (when there are no SHA extensions), and 4 SHAKE256 hashes with AVX2 and BMI2 (4-way Keccak). The WOTS+ chains of a key pair are computed in one call to C.
  • SLH-DSA keys can be exported and imported as defined in RFC 9909 (pure SLH-DSA): public keys as X.509 SubjectPublicKeyInfo (also from certificates), private keys as PKCS#8 OneAsymmetricKey (also encrypted), in DER or PEM.
  • New module Crypto.Signature.slhdsa, for SLH-DSA and HashSLH-DSA signatures (FIPS 205), hedged (default) or deterministic, with an optional context.
  • SLH-DSA signing, key generation and construct() (which checks the private key) accept a parameter threads, to compute the XMSS and FORS trees on several threads. With 8 threads, signing with the s parameter sets is 3.5x to 5x faster.
  • Crypto.PublicKey.SLHDSA also supports the six parameter sets of the initial public draft of NIST SP 800-230 (April 2026), such as SLH_DSA_SHA2_128_24: smaller signatures and faster verification, but each key must sign at most 2^24 messages, and key generation and signing take minutes (use threads). The draft may still change: their support is experimental, and they must not be used in production.
  • New self-test option --include-very-slow-tests, for the tests marked very_slow (like key generation and signing with the SP 800-230 parameter sets, which take about half an hour): they do not run otherwise.
  • New module Crypto.Cipher.AEGIS, for the authenticated ciphers AEGIS-128L and AEGIS-256 (RFC 10032), with 16- or 32-byte tags. They use the AES instructions of the CPU (AES-NI or the ARMv8 Cryptography Extensions): AEGIS-128L is then 3 to 5 times faster than AES-GCM. Without them, the AES round is bitsliced (constant time), with NEON on ARM and SSE2 on x86; on 64-bit ARM, AEGIS-128L is then still faster than ChaCha20-Poly1305.

Breaking changes

  • In Crypto.Signature.mldsa.new(), the context can only be passed as a keyword argument (context=), as for Crypto.Signature.slhdsa.new().

Resolved issues

  • Security, GH#968: ECC.construct(), and so ECC.import_key(), accepted the point at infinity as a public key on the NIST P curves and secp256k1 (for instance, 04 followed by zero bytes in a SubjectPublicKeyInfo). ECDSA signatures for such a key can be forged without any secret. It is now rejected with ValueError. Thanks to Zulfareen Shaikh.
  • Security, GH#969: DSA.construct(), and so DSA.import_key(), accepted public keys

... (truncated)

Commits
  • f4d6ea2 PyPI: post-quantum in the summary, keywords and README intro
  • 246fce8 Docs: AEGIS and SLH-DSA in the README and the features page
  • b745961 Bump version
  • 51a4ce1 Fix AEGIS doc
  • 83363a9 Bump test version
  • b3b8f03 Add AEGIS-128L and AEGIS-256 (RFC 10032)
  • 59e0b73 CI: skip doc-only changes and duplicate runs, timeouts, shared install action
  • 8a56715 CI: queue integration runs in FIFO order, macOS jobs first
  • eb91204 DSA: test public keys 0 and p
  • 973961d DSA: comment on public key range as in SP 800-89
  • Additional commits viewable in compare view

Dependabot compatibility score

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)

Bumps [pycryptodome](https://github.com/Legrandin/pycryptodome) from 4.5.0 to 4.6.0.
- [Release notes](https://github.com/Legrandin/pycryptodome/releases)
- [Changelog](https://github.com/Legrandin/pycryptodome/blob/master/Changelog.rst)
- [Commits](Legrandin/pycryptodome@v4.5.0...v4.6.0)

---
updated-dependencies:
- dependency-name: pycryptodome
  dependency-version: 4.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code labels Nov 25, 2026
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:uv Pull requests that update python:uv code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants