New features
- Speed up KangarooTwelve by 50% for long messages (1MB or more).
- New parameter
threadsforCrypto.Hash.KangarooTwelve.new(),
to hash long messages on several CPU cores (threads=0for 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 newmax_iteration_countoption. 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.