pypi pycryptodomex 3.24.0
v3.24.0 - Evreux

2 hours ago

New features

  • Speed up KangarooTwelve by 50% for long messages (1MB or more).
  • New parameter threads for Crypto.Hash.KangarooTwelve.new(),
    to hash long messages on several CPU cores (threads=0 for all of them).
    The output does not depend on the number of threads.

Resolved issues

  • GH#875: Fixed the Object Identifiers (OID) for BLAKE2.
  • Fixed a potential DOS attack when decrypting a password-encrypted PKCS#8 key,
    when the iteration count is enourmous. Decryption will now fail if it exceeds
    50M iterations; the limit can be changed or removed via
    the new max_iteration_count option. Thanks to afldl for reporting.
  • Fixed the maximum number of bytes that GCM should encrypt. Thanks to Loganaden Velvindron.
  • Fixed ECC operations on 32-bit Windows (x86) wheels: due to a compiler bug in
    Visual Studio 2022, the modular inversion skipped half of the exponent bits,
    producing wrong results.
  • Fixed a bug in KangarooTwelve in the scenario where customization string is very
    long (8190 bytes or longer) and the message to hash is empty.

Other changes

  • Build Windows wheel with Visual Studio 2022, from Visual Studio 2019.
  • Remove support for Python 3.7.

Don't miss a new pycryptodomex release

NewReleases is sending notifications on new releases.