| 1 |
Changelog |
| 2 |
========= |
| 3 |
|
| 4 |
3.20.0 (9 January 2024) |
| 5 |
++++++++++++++++++++++++++ |
| 6 |
|
| 7 |
New features |
| 8 |
--------------- |
| 9 |
* Added support for TurboSHAKE128 and TurboSHAKE256. |
| 10 |
* Added method ``Crypto.Hash.new()`` to generate a hash |
| 11 |
object given a hash name. |
| 12 |
* Added support for AES-GCM encryption of PBES2 and PKCS#8 |
| 13 |
containers. |
| 14 |
* Added support for SHA-2 and SHA-3 algorithms in PBKDF2 |
| 15 |
when creating PBES2 and PKCS#8 containers. |
| 16 |
* Export of RSA keys accepts the ``prot_params`` dictionary |
| 17 |
as parameter to control the number of iterations for PBKDF2 |
| 18 |
and scrypt. |
| 19 |
* C unit tests also run on non-x86 architectures. |
| 20 |
|
| 21 |
Resolved issues |
| 22 |
--------------- |
| 23 |
* GH#787: Fixed autodetect logic for GCC 14 in combination with LTO. |
| 24 |
|
| 25 |
3.19.1 (28 December 2023) |
| 26 |
++++++++++++++++++++++++++ |
| 27 |
|
| 28 |
Resolved issues |
| 29 |
--------------- |
| 30 |
* Fixed a side-channel leakage with OAEP decryption that could be |
| 31 |
exploited to carry out a Manger attack (CVE-2023-52323). Thanks to Hubert Kario. |
| 32 |
|
| 33 |
3.19.0 (16 September 2023) |
| 34 |
++++++++++++++++++++++++++ |
| 35 |
|
| 36 |
New features |
| 37 |
--------------- |
| 38 |
* The ``update()`` methods of TupleHash128 and TupleHash256 objects |
| 39 |
can now hash multiple items (byte strings) at once. |
| 40 |
Thanks to Sylvain Pelissier. |
| 41 |
* Added support for ECDH, with ``Crypto.Protocol.DH``. |
| 42 |
|
| 43 |
Resolved issues |
| 44 |
--------------- |
| 45 |
* GH#754: due to a bug in ``cffi``, do not use it on Windows with Python 3.12+. |
| 46 |
|
| 47 |
3.18.0 (18 May 2023) |
| 48 |
++++++++++++++++++++++++++ |
| 49 |
|
| 50 |
New features |
| 51 |
--------------- |
| 52 |
* Added support for DER BOOLEAN encodings. |
| 53 |
* The library now compiles on Windows ARM64. Thanks to Niyas Sait. |
| 54 |
|
| 55 |
Resolved issues |
| 56 |
--------------- |
| 57 |
* GH#722: ``nonce`` attribute was not correctly set for XChaCha20_Poly1305 ciphers. Thanks to Liam Haber. |
| 58 |
* GH#728: Workaround for a possible x86 emulator bug in Windows for ARM64. |
| 59 |
* GH#739: OID encoding for arc 2 didn't accept children larger than 39. Thanks to James. |
| 60 |
* Correctly check that the scalar matches the point when importing an ECC private key. |
| 61 |
|
| 62 |
3.17.0 (29 January 2023) |
| 63 |
++++++++++++++++++++++++++ |
| 64 |
|
| 65 |
New features |
| 66 |
--------------- |
| 67 |
* Added support for the Counter Mode KDF defined in SP 800-108 Rev 1. |
| 68 |
* Reduce the minimum tag length for the EAX cipher to 2 bytes. |
| 69 |
* An RSA object has 4 new properties for the CRT coefficients: |
| 70 |
``dp``, ``dq``, ``invq`` and ``invq`` (``invp`` is the same value |
| 71 |
as the existing ``u``). |
| 72 |
|
| 73 |
Resolved issues |
| 74 |
--------------- |
| 75 |
* GH#526: improved typing for ``RSA.construct``. |
| 76 |
* GH#534: reduced memory consumption when using a large number |
| 77 |
of cipher objects. |
| 78 |
* GH#598: fixed missing error handling for ``Util.number.inverse``. |
| 79 |
* GH#629: improved typing for ``AES.new`` and the various |
| 80 |
mode-specific types it returns. Thanks to Greg Werbin. |
| 81 |
* GH#653: added workaround for an alleged GCC compiler bug |
| 82 |
that affected Ed25519 code compiled for AVX2. |
| 83 |
* GH#658: attribute ``curve`` of an ECC key was not always |
| 84 |
the preferred curve name, as it used to be in v3.15.0 |
| 85 |
(independently of the curve name specified when generating |
| 86 |
the key). |
| 87 |
* GH#637: fixed typing for legacy modules ``PKCS1_v1_5`` and ``PKCS1_PSS``, |
| 88 |
as their ``verify()`` returned a boolean. |
| 89 |
* GH#664: with OCB mode, nonces of maximum length (15 bytes) |
| 90 |
were actually used as 14 bytes nonces. |
| 91 |
After this fix, data that was encrypted in past using the |
| 92 |
(default) nonce length of 15 bytes can still be decrypted |
| 93 |
by reducing the nonce to its first 14 bytes. |
| 94 |
* GH#705: improved typing for ``nonce``, ``iv``, and ``IV`` parameters |
| 95 |
of cipher objects. |
| 96 |
|
| 97 |
Other changes |
| 98 |
------------- |
| 99 |
* Build PyPy wheels only for versions 3.8 and 3.9, and not for 3.7 anymore. |
| 100 |
|
| 101 |
3.16.0 (26 November 2022) |
| 102 |
++++++++++++++++++++++++++ |
| 103 |
|
| 104 |
New features |
| 105 |
------------ |
| 106 |
* Build wheels for musl Linux. Thanks to Ben Raz. |
| 107 |
|
| 108 |
Resolved issues |
| 109 |
--------------- |
| 110 |
* GH#639: ARC4 now also works with 'keys' as short as 8 bits. |
| 111 |
* GH#669: fix segfaults when running in a manylinux2010 i686 image. |
| 112 |
|
| 113 |
3.15.0 (22 June 2022) |
| 114 |
++++++++++++++++++++++++++ |
| 115 |
|
| 116 |
New features |
| 117 |
------------ |
| 118 |
* Add support for curves Ed25519 and Ed448, including export and import of keys. |
| 119 |
* Add support for EdDSA signatures. |
| 120 |
* Add support for Asymmetric Key Packages (RFC5958) to import private keys. |
| 121 |
|
| 122 |
Resolved issues |
| 123 |
--------------- |
| 124 |
* GH#620: for ``Crypto.Util.number.getPrime`` , do not sequentially |
| 125 |
scan numbers searching for a prime. |
| 126 |
|
| 127 |
3.14.1 (5 February 2022) |
| 128 |
++++++++++++++++++++++++++ |
| 129 |
|
| 130 |
Resolved issues |
| 131 |
--------------- |
| 132 |
* GH#595: Fixed memory leak for GMP integers. |
| 133 |
Thanks to Witalij Siebert and Pablo QuĂlez. |
| 134 |
|
| 135 |
3.14.0 (30 January 2022) |
| 136 |
++++++++++++++++++++++++++ |
| 137 |
|
| 138 |
New features |
| 139 |
------------ |
| 140 |
* Add support for curve NIST P-192. |
| 141 |
|
| 142 |
3.13.0 (23 January 2022) |
| 143 |
++++++++++++++++++++++++++ |
| 144 |
|
| 145 |
New features |
| 146 |
------------ |
| 147 |
* Add support for curve NIST P-224. |
| 148 |
|
| 149 |
Resolved issues |
| 150 |
--------------- |
| 151 |
* GH#590: Fixed typing info for ``Crypto.PublicKey.ECC``. |
| 152 |
|
| 153 |
Other changes |
| 154 |
------------- |
| 155 |
* Relaxed ECDSA requirements for FIPS 186 signatures and accept any SHA-2 or SHA-3 hash. |
| 156 |
``sign()`` and ``verify()`` will be performed even if the hash is stronger than the ECC key. |
| 157 |
|
| 158 |
3.12.0 (4 December 2021) |
| 159 |
++++++++++++++++++++++++++ |
| 160 |
|
| 161 |
New features |
| 162 |
------------ |
| 163 |
* ECC keys in the SEC1 format can be exported and imported. |
| 164 |
* Add support for KMAC128, KMAC256, TupleHash128, and TupleHash256 (NIST SP-800 185). |
| 165 |
* Add support for KangarooTwelve. |
| 166 |
|
| 167 |
Resolved issues |
| 168 |
--------------- |
| 169 |
* GH#563: An asymmetric key could not be imported as a ``memoryview``. |
| 170 |
* GH#566: cSHAKE128/256 generated a wrong output for customization strings |
| 171 |
longer than 255 bytes. |
| 172 |
* GH#582: CBC decryption generated the wrong plaintext when the input and the output were the same buffer. |
| 173 |
Thanks to Michael K. Ashburn. |
| 174 |
|
| 175 |
3.11.0 (8 October 2021) |
| 176 |
++++++++++++++++++++++++++ |
| 177 |
|
| 178 |
Resolved issues |
| 179 |
--------------- |
| 180 |
* GH#512: Especially for very small bit sizes, ``Crypto.Util.number.getPrime()`` was |
| 181 |
occasionally generating primes larger than given the bit size. Thanks to Koki Takahashi. |
| 182 |
* GH#552: Correct typing annotations for ``PKCS115_Cipher.decrypt()``. |
| 183 |
* GH#555: ``decrypt()`` method of a PKCS#1v1.5 cipher returned a ``bytearray`` instead of ``bytes``. |
| 184 |
* GH#557: External DSA domain parameters were accepted even when the modulus (``p``) was not prime. |
| 185 |
This affected ``Crypto.PublicKey.DSA.generate()`` and ``Crypto.PublicKey.DSA.construct()``. |
| 186 |
Thanks to Koki Takahashi. |
| 187 |
|
| 188 |
New features |
| 189 |
------------ |
| 190 |
* Added cSHAKE128 and cSHAKE256 (of SHA-3 family). Thanks to Michael Schaffner. |
| 191 |
* GH#558: The flag RTLD_DEEPBIND passed to ``dlopen()`` is not well supported by |
| 192 |
`address sanitizers <https://github.com/google/sanitizers/issues/611>`_. |
| 193 |
It is now possible to set the environment variable ``PYCRYPTDOME_DISABLE_DEEPBIND`` |
| 194 |
to drop that flag and allow security testing. |
| 195 |
|
| 196 |
3.10.4 (25 September 2021) |
| 197 |
++++++++++++++++++++++++++ |
| 198 |
|
| 199 |
Resolved issues |
| 200 |
--------------- |
| 201 |
* Output of ``Crypto.Util.number.long_to_bytes()`` was not always a multiple of ``blocksize``. |
| 202 |
|
| 203 |
3.10.3 (22 September 2021) |
| 204 |
++++++++++++++++++++++++++ |
| 205 |
|
| 206 |
Resolved issues |
| 207 |
--------------- |
| 208 |
* GH#376: Fixed symbol conflict between different versions of ``libgmp``. |
| 209 |
* GH#481: Improved robustness of PKCS#1v1.5 decryption against timing attacks. |
| 210 |
* GH#506 and GH#509: Fixed segmentation faults on Apple M1 and other Aarch64 SoCs, |
| 211 |
when the GMP library was accessed via ``ctypes``. Do not use GMP's own sscanf |
| 212 |
and snprintf routines: instead, use simpler conversion routines. |
| 213 |
* GH#510: Workaround for ``cffi`` calling ``ctypes.util.find_library()``, which |
| 214 |
invokes ``gcc`` and ``ld`` on Linux, considerably slowing down all imports. |
| 215 |
On certain configurations, that may also leave temporary files behind. |
| 216 |
* GH#517: Fix RSAES-OAEP, as it didn't always fail when zero padding was incorrect. |
| 217 |
|
| 218 |
New features |
| 219 |
------------ |
| 220 |
* Added support for SHA-3 hash functions to HMAC. |
| 221 |
|
| 222 |
Other changes |
| 223 |
------------- |
| 224 |
* The Windows wheels of Python 2.7 now require the VS2015 runtime to be installed in the system, |
| 225 |
because Microsoft stopped distributing the VS2008 compiler in April 2021. |
| 226 |
VS2008 was used to compile the Python 2.7 extensions. |
| 227 |
|
| 228 |
3.10.1 (9 February 2021) |
| 229 |
++++++++++++++++++++++++ |
| 230 |
|
| 231 |
Other changes |
| 232 |
------------- |
| 233 |
* Python 3 wheels use ``abi3`` ABI tag. |
| 234 |
* Remove Appveyor CI. |
| 235 |
|
| 236 |
3.10.0 (6 February 2021) |
| 237 |
++++++++++++++++++++++++ |
| 238 |
|
| 239 |
Resolved issues |
| 240 |
--------------- |
| 241 |
* Fixed a potential memory leak when initializing block ciphers. |
| 242 |
* GH#466: ``Crypto.Math.miller_rabin_test()`` was still using the system random |
| 243 |
source and not the one provided as parameter. |
| 244 |
* GH#469: RSA objects have the method ``public_key()`` like ECC objects. |
| 245 |
The old method ``publickey()`` is still available for backward compatibility. |
| 246 |
* GH#476: ``Crypto.Util.Padding.unpad()`` was raising an incorrect exception |
| 247 |
in case of zero-length inputs. Thanks to Captainowie. |
| 248 |
* GH#491: better exception message when ``Counter.new()`` is called with an integer |
| 249 |
``initial_value`` than doesn't fit into ``nbits`` bits. |
| 250 |
* GH#496: added missing ``block_size`` member for ECB cipher objects. Thanks to willem. |
| 251 |
* GH#500: ``nonce`` member of an XChaCha20 cipher object was not matching the original nonce. |
| 252 |
Thanks to Charles Machalow. |
| 253 |
|
| 254 |
Other changes |
| 255 |
------------- |
| 256 |
* The bulk of the test vectors have been moved to the separate |
| 257 |
package ``pycryptodome-test-vectors``. As result, packages ``pycryptodome`` and |
| 258 |
``pycryptodomex`` become significantly smaller (from 14MB to 3MB). |
| 259 |
* Moved CI tests and build service from Travis CI to GitHub Actions. |
| 260 |
|
| 261 |
Breaks in compatibility |
| 262 |
----------------------- |
| 263 |
* Drop support for Python 2.6 and 3.4. |
| 264 |
|
| 265 |
3.9.9 (2 November 2020) |
| 266 |
+++++++++++++++++++++++ |
| 267 |
|
| 268 |
Resolved issues |
| 269 |
--------------- |
| 270 |
* GH#435: Fixed ``Crypto.Util.number.size`` for negative numbers. |
| 271 |
|
| 272 |
New features |
| 273 |
------------ |
| 274 |
* Build Python 3.9 wheels on Windows. |
| 275 |
|
| 276 |
3.9.8 (23 June 2020) |
| 277 |
++++++++++++++++++++ |
| 278 |
|
| 279 |
Resolved issues |
| 280 |
--------------- |
| 281 |
* GH#426: The Shamir's secret sharing implementation is not actually compatible with ``ssss``. |
| 282 |
Added an optional parameter to enable interoperability. |
| 283 |
* GH#427: Skip altogether loading of ``gmp.dll`` on Windows. |
| 284 |
* GH#420: Fix incorrect CFB decryption when the input and the output are the same buffer. |
| 285 |
|
| 286 |
New features |
| 287 |
------------ |
| 288 |
* Speed up Shamir's secret sharing routines. Thanks to ncarve. |
| 289 |
|
| 290 |
3.9.7 (20 February 2020) |
| 291 |
++++++++++++++++++++++++ |
| 292 |
|
| 293 |
Resolved issues |
| 294 |
--------------- |
| 295 |
* GH#381: Make notarization possible again on OS X when using wheels. |
| 296 |
Thanks to Colin Atkinson. |
| 297 |
|
| 298 |
3.9.6 (2 February 2020) |
| 299 |
++++++++++++++++++++++++ |
| 300 |
|
| 301 |
Resolved issues |
| 302 |
--------------- |
| 303 |
* Fix building of wheels for OS X by explicitly setting `sysroot` location. |
| 304 |
|
| 305 |
3.9.5 (1 February 2020) |
| 306 |
++++++++++++++++++++++++ |
| 307 |
|
| 308 |
Resolved issues |
| 309 |
--------------- |
| 310 |
* RSA OAEP decryption was not verifying that all ``PS`` bytes are zero. |
| 311 |
* GH#372: fixed memory leak for operations that use memoryviews when `cffi` is not installed. |
| 312 |
* Fixed wrong ASN.1 OID for HMAC-SHA512 in PBE2. |
| 313 |
|
| 314 |
New features |
| 315 |
------------ |
| 316 |
* Updated Wycheproof test vectors to version 0.8r12. |
| 317 |
|
| 318 |
3.9.4 (18 November 2019) |
| 319 |
++++++++++++++++++++++++ |
| 320 |
|
| 321 |
Resolved issues |
| 322 |
--------------- |
| 323 |
* GH#341: Prevent ``key_to_english`` from creating invalid data when fed with |
| 324 |
keys of length not multiple of 8. Thanks to vstoykovbg. |
| 325 |
* GH#347: Fix blocking RSA signing/decryption when key has very small factor. |
| 326 |
Thanks to Martijn Pieters. |
| 327 |
|
| 328 |
3.9.3 (12 November 2019) |
| 329 |
++++++++++++++++++++++++ |
| 330 |
|
| 331 |
Resolved issues |
| 332 |
--------------- |
| 333 |
* GH#308: Align stack of functions using SSE2 intrinsics to avoid crashes, |
| 334 |
when compiled with gcc on 32-bit x86 platforms. |
| 335 |
|
| 336 |
3.9.2 (10 November 2019) |
| 337 |
++++++++++++++++++++++++ |
| 338 |
|
| 339 |
New features |
| 340 |
------------ |
| 341 |
* Add Python 3.8 wheels for Mac. |
| 342 |
|
| 343 |
Resolved issues |
| 344 |
--------------- |
| 345 |
* GH#308: Avoid allocating arrays of ``__m128i`` on the stack, to cope with buggy compilers. |
| 346 |
* GH#322: Remove blanket ``-O3`` optimization for gcc and clang, to cope with buggy compilers. |
| 347 |
* GH#337: Fix typing stubs for signatures. |
| 348 |
* GH#338: Deal with gcc installations that don't have ``x86intrin.h``. |
| 349 |
|
| 350 |
3.9.1 (1 November 2019) |
| 351 |
++++++++++++++++++++++++ |
| 352 |
|
| 353 |
New features |
| 354 |
------------ |
| 355 |
* Add Python 3.8 wheels for Linux and Windows. |
| 356 |
|
| 357 |
Resolved issues |
| 358 |
--------------- |
| 359 |
|
| 360 |
* GH#328: minor speed-up when importing RSA. |
| 361 |
|
| 362 |
3.9.0 (27 August 2019) |
| 363 |
+++++++++++++++++++++++ |
| 364 |
|
| 365 |
New features |
| 366 |
------------ |
| 367 |
|
| 368 |
* Add support for loading PEM files encrypted with AES256-CBC. |
| 369 |
* Add support for XChaCha20 and XChaCha20-Poly1305 ciphers. |
| 370 |
* Add support for bcrypt key derivation function (``Crypto.Protocol.KDF.bcrypt``). |
| 371 |
* Add support for left multiplication of an EC point by a scalar. |
| 372 |
* Add support for importing ECC and RSA keys in the new OpenSSH format. |
| 373 |
|
| 374 |
Resolved issues |
| 375 |
--------------- |
| 376 |
|
| 377 |
* GH#312: it was not possible to invert an EC point anymore. |
| 378 |
* GH#316: fix printing of DSA keys. |
| 379 |
* GH#317: ``DSA.generate()`` was not always using the ``randfunc`` input. |
| 380 |
* GH#285: the MD2 hash had block size of 64 bytes instead of 16; as result the HMAC construction gave incorrect results. |
| 381 |
|
| 382 |
3.8.2 (30 May 2019) |
| 383 |
+++++++++++++++++++++++ |
| 384 |
|
| 385 |
Resolved issues |
| 386 |
--------------- |
| 387 |
|
| 388 |
* GH#291: fix strict aliasing problem, emerged with GCC 9.1. |
| 389 |
|
| 390 |
3.8.1 (4 April 2019) |
| 391 |
+++++++++++++++++++++++ |
| 392 |
|
| 393 |
New features |
| 394 |
------------ |
| 395 |
|
| 396 |
* Add support for loading PEM files encrypted with AES192-CBC and AES256-GCM. |
| 397 |
* When importing ECC keys in PEM format, ignore the redundant EC PARAMS section that was included by certain openssl commands. |
| 398 |
|
| 399 |
Resolved issues |
| 400 |
--------------- |
| 401 |
|
| 402 |
* ``repr()`` did not work for ``ECC.EccKey`` objects. |
| 403 |
* Fix installation in development mode (``setup install develop`` or ``pip install -e .``). |
| 404 |
* Minimal length for Blowfish cipher is 32 bits, not 40 bits. |
| 405 |
* Various updates to docs. |
| 406 |
|
| 407 |
3.8.0 (23 March 2019) |
| 408 |
+++++++++++++++++++++++ |
| 409 |
|
| 410 |
New features |
| 411 |
------------ |
| 412 |
|
| 413 |
* Speed-up ECC performance. ECDSA is 33 times faster on the NIST P-256 curve. |
| 414 |
* Added support for NIST P-384 and P-521 curves. |
| 415 |
* ``EccKey`` has new methods ``size_in_bits()`` and ``size_in_bytes()``. |
| 416 |
* Support HMAC-SHA224, HMAC-SHA256, HMAC-SHA384, and HMAC-SHA512 in PBE2/PBKDF2. |
| 417 |
|
| 418 |
Resolved issues |
| 419 |
--------------- |
| 420 |
|
| 421 |
* DER objects were not rejected if their length field had a leading zero. |
| 422 |
* Allow legacy RC2 ciphers to have 40-bit keys. |
| 423 |
* ASN.1 Object IDs did not allow the value 0 in the path. |
| 424 |
|
| 425 |
Breaks in compatibility |
| 426 |
----------------------- |
| 427 |
|
| 428 |
* ``point_at_infinity()`` becomes an instance method for ``Crypto.PublicKey.ECC.EccKey``, from a static one. |
| 429 |
|
| 430 |
3.7.3 (19 January 2019) |
| 431 |
+++++++++++++++++++++++ |
| 432 |
|
| 433 |
Resolved issues |
| 434 |
--------------- |
| 435 |
|
| 436 |
* GH#258: False positive on PSS signatures when externally provided salt is too long. |
| 437 |
* Include type stub files for ``Crypto.IO`` and ``Crypto.Util``. |
| 438 |
|
| 439 |
3.7.2 (26 November 2018) |
| 440 |
++++++++++++++++++++++++ |
| 441 |
|
| 442 |
Resolved issues |
| 443 |
--------------- |
| 444 |
|
| 445 |
* GH#242: Fixed compilation problem on ARM platforms. |
| 446 |
|
| 447 |
3.7.1 (25 November 2018) |
| 448 |
++++++++++++++++++++++++ |
| 449 |
|
| 450 |
New features |
| 451 |
------------ |
| 452 |
|
| 453 |
* Added type stubs to enable static type checking with mypy. Thanks to Michael Nix. |
| 454 |
* New ``update_after_digest`` flag for CMAC. |
| 455 |
|
| 456 |
Resolved issues |
| 457 |
--------------- |
| 458 |
|
| 459 |
* GH#232: Fixed problem with gcc 4.x when compiling ``ghash_clmul.c``. |
| 460 |
* GH#238: Incorrect digest value produced by CMAC after cloning the object. |
| 461 |
* Method ``update()`` of an EAX cipher object was returning the underlying CMAC object, |
| 462 |
instead of the EAX object itself. |
| 463 |
* Method ``update()`` of a CMAC object was not throwing an exception after the digest |
| 464 |
was computed (with ``digest()`` or ``verify()``). |
| 465 |
|
| 466 |
3.7.0 (27 October 2018) |
| 467 |
+++++++++++++++++++++++ |
| 468 |
|
| 469 |
New features |
| 470 |
------------ |
| 471 |
|
| 472 |
* Added support for Poly1305 MAC (with AES and ChaCha20 ciphers for key derivation). |
| 473 |
* Added support for ChaCha20-Poly1305 AEAD cipher. |
| 474 |
* New parameter ``output`` for ``Crypto.Util.strxor.strxor``, ``Crypto.Util.strxor.strxor_c``, |
| 475 |
``encrypt`` and ``decrypt`` methods in symmetric ciphers (``Crypto.Cipher`` package). |
| 476 |
``output`` is a pre-allocated buffer (a ``bytearray`` or a writeable ``memoryview``) |
| 477 |
where the result must be stored. |
| 478 |
This requires less memory for very large payloads; it is also more efficient when |
| 479 |
encrypting (or decrypting) several small payloads. |
| 480 |
|
| 481 |
Resolved issues |
| 482 |
--------------- |
| 483 |
|
| 484 |
* GH#266: AES-GCM hangs when processing more than 4GB at a time on x86 with PCLMULQDQ instruction. |
| 485 |
|
| 486 |
Breaks in compatibility |
| 487 |
----------------------- |
| 488 |
|
| 489 |
* Drop support for Python 3.3. |
| 490 |
* Remove ``Crypto.Util.py3compat.unhexlify`` and ``Crypto.Util.py3compat.hexlify``. |
| 491 |
* With the old Python 2.6, use only ``ctypes`` (and not ``cffi``) to interface to native code. |
| 492 |
|
| 493 |
3.6.6 (17 August 2018) |
| 494 |
++++++++++++++++++++++ |
| 495 |
|
| 496 |
Resolved issues |
| 497 |
--------------- |
| 498 |
|
| 499 |
* GH#198: Fix vulnerability on AESNI ECB with payloads smaller than 16 bytes (CVE-2018-15560). |
| 500 |
|
| 501 |
3.6.5 (12 August 2018) |
| 502 |
++++++++++++++++++++++ |
| 503 |
|
| 504 |
Resolved issues |
| 505 |
--------------- |
| 506 |
|
| 507 |
* GH#187: Fixed incorrect AES encryption/decryption with AES acceleration on x86 |
| 508 |
due to gcc's optimization and strict aliasing rules. |
| 509 |
* GH#188: More prime number candidates than necessary where discarded as composite |
| 510 |
due to the limited way D values were searched in the Lucas test. |
| 511 |
* Fixed ResouceWarnings and DeprecationWarnings. |
| 512 |
* Workaround for Python 3.7.0 bug on Windows (https://bugs.python.org/issue34108). |
| 513 |
|
| 514 |
3.6.4 (10 July 2018) |
| 515 |
+++++++++++++++++++++ |
| 516 |
|
| 517 |
New features |
| 518 |
------------ |
| 519 |
|
| 520 |
* Build Python 3.7 wheels on Linux, Windows and Mac. |
| 521 |
|
| 522 |
Resolved issues |
| 523 |
--------------- |
| 524 |
|
| 525 |
* GH#178: Rename ``_cpuid`` module to make upgrades more robust. |
| 526 |
* More meaningful exceptions in case of mismatch in IV length (CBC/OFB/CFB modes). |
| 527 |
* Fix compilation issues on Solaris 10/11. |
| 528 |
|
| 529 |
3.6.3 (21 June 2018) |
| 530 |
+++++++++++++++++++++ |
| 531 |
|
| 532 |
Resolved issues |
| 533 |
--------------- |
| 534 |
|
| 535 |
* GH#175: Fixed incorrect results for CTR encryption/decryption with more than 8 blocks. |
| 536 |
|
| 537 |
3.6.2 (19 June 2018) |
| 538 |
+++++++++++++++++++++ |
| 539 |
|
| 540 |
New features |
| 541 |
------------ |
| 542 |
* ChaCha20 accepts 96 bit nonces (in addition to 64 bit nonces) |
| 543 |
as defined in RFC7539. |
| 544 |
* Accelerate AES-GCM on x86 using PCLMULQDQ instruction. |
| 545 |
* Accelerate AES-ECB and AES-CTR on x86 by pipelining AESNI instructions. |
| 546 |
* As result of the two improvements above, on x86 (Broadwell): |
| 547 |
|
| 548 |
- AES-ECB and AES-CTR are 3x faster |
| 549 |
- AES-GCM is 9x faster |
| 550 |
|
| 551 |
Resolved issues |
| 552 |
--------------- |
| 553 |
|
| 554 |
* On Windows, MPIR library was stilled pulled in if renamed to ``gmp.dll``. |
| 555 |
|
| 556 |
Breaks in compatibility |
| 557 |
----------------------- |
| 558 |
|
| 559 |
* In ``Crypto.Util.number``, functions ``floor_div`` and ``exact_div`` |
| 560 |
have been removed. Also, ``ceil_div`` is limited to non-negative terms only. |
| 561 |
|
| 562 |
3.6.1 (15 April 2018) |
| 563 |
+++++++++++++++++++++ |
| 564 |
|
| 565 |
New features |
| 566 |
------------ |
| 567 |
* Added Google Wycheproof tests (https://github.com/google/wycheproof) |
| 568 |
for RSA, DSA, ECDSA, GCM, SIV, EAX, CMAC. |
| 569 |
* New parameter ``mac_len`` (length of MAC tag) for CMAC. |
| 570 |
|
| 571 |
Resolved issues |
| 572 |
--------------- |
| 573 |
|
| 574 |
* In certain circumstances (at counter wrapping, which happens on average after |
| 575 |
32 GB) AES GCM produced wrong ciphertexts. |
| 576 |
* Method ``encrypt()`` of AES SIV cipher could be still called, |
| 577 |
whereas only ``encrypt_and_digest()`` is allowed. |
| 578 |
|
| 579 |
3.6.0 (8 April 2018) |
| 580 |
++++++++++++++++++++ |
| 581 |
|
| 582 |
New features |
| 583 |
------------ |
| 584 |
* Introduced ``export_key`` and deprecated ``exportKey`` for DSA and RSA key |
| 585 |
objects. |
| 586 |
* Ciphers and hash functions accept ``memoryview`` objects in input. |
| 587 |
* Added support for SHA-512/224 and SHA-512/256. |
| 588 |
|
| 589 |
Resolved issues |
| 590 |
--------------- |
| 591 |
|
| 592 |
* Reintroduced ``Crypto.__version__`` variable as in PyCrypto. |
| 593 |
* Fixed compilation problem with MinGW. |
| 594 |
|
| 595 |
3.5.1 (8 March 2018) |
| 596 |
++++++++++++++++++++ |
| 597 |
|
| 598 |
Resolved issues |
| 599 |
--------------- |
| 600 |
|
| 601 |
* GH#142. Fix mismatch with declaration and definition of addmul128. |
| 602 |
|
| 603 |
3.5.0 (7 March 2018) |
| 604 |
++++++++++++++++++++ |
| 605 |
|
| 606 |
New features |
| 607 |
------------ |
| 608 |
* Import and export of ECC curves in compressed form. |
| 609 |
* The initial counter for a cipher in CTR mode can be a byte string |
| 610 |
(in addition to an integer). |
| 611 |
* Faster PBKDF2 for HMAC-based PRFs (at least 20x for short passwords, |
| 612 |
more for longer passwords). Thanks to Christian Heimes for pointing |
| 613 |
out the implementation was under-optimized. |
| 614 |
* The salt for PBKDF2 can be either a string or bytes (GH#67). |
| 615 |
* Ciphers and hash functions accept data as `bytearray`, not just |
| 616 |
binary strings. |
| 617 |
* The old SHA-1 and MD5 hash functions are available even when Python's |
| 618 |
own `hashlib` does not include them. |
| 619 |
|
| 620 |
Resolved issues |
| 621 |
--------------- |
| 622 |
|
| 623 |
* Without libgmp, modular exponentiation (since v3.4.8) crashed |
| 624 |
on 32-bit big-endian systems. |
| 625 |
|
| 626 |
Breaks in compatibility |
| 627 |
----------------------- |
| 628 |
|
| 629 |
* Removed support for Python < 2.6. |
| 630 |
|
| 631 |
3.4.12 (5 February 2018) |
| 632 |
++++++++++++++++++++++++ |
| 633 |
|
| 634 |
Resolved issues |
| 635 |
--------------- |
| 636 |
|
| 637 |
* GH#129. pycryptodomex could only be installed via wheels. |
| 638 |
|
| 639 |
3.4.11 (5 February 2018) |
| 640 |
++++++++++++++++++++++++ |
| 641 |
|
| 642 |
Resolved issues |
| 643 |
--------------- |
| 644 |
|
| 645 |
* GH#121. the record list was still not correct due to PEP3147 |
| 646 |
and __pycache__ directories. Thanks again to John O'Brien. |
| 647 |
|
| 648 |
3.4.10 (2 February 2018) |
| 649 |
++++++++++++++++++++++++ |
| 650 |
|
| 651 |
Resolved issues |
| 652 |
--------------- |
| 653 |
|
| 654 |
* When creating ElGamal keys, the generator wasn't a square residue: |
| 655 |
ElGamal encryption done with those keys cannot be secure under |
| 656 |
the DDH assumption. Thanks to Weikeng Chen. |
| 657 |
|
| 658 |
3.4.9 (1 February 2018) |
| 659 |
+++++++++++++++++++++++ |
| 660 |
|
| 661 |
New features |
| 662 |
------------ |
| 663 |
* More meaningful error messages while importing an ECC key. |
| 664 |
|
| 665 |
Resolved issues |
| 666 |
--------------- |
| 667 |
|
| 668 |
* GH#123 and #125. The SSE2 command line switch was not always passed on 32-bit x86 platforms. |
| 669 |
* GH#121. The record list (--record) was not always correctly filled for the |
| 670 |
pycryptodomex package. Thanks to John W. O'Brien. |
| 671 |
|
| 672 |
3.4.8 (27 January 2018) |
| 673 |
+++++++++++++++++++++++ |
| 674 |
|
| 675 |
New features |
| 676 |
------------ |
| 677 |
|
| 678 |
* Added a native extension in pure C for modular exponentiation, optimized for SSE2 on x86. |
| 679 |
In the process, we drop support for the arbitrary arithmetic library MPIR |
| 680 |
on Windows, which is painful to compile and deploy. |
| 681 |
The custom modular exponentiation is 130% (160%) slower on an Intel CPU in 32-bit (64-bit) mode, |
| 682 |
compared to MPIR. Still, that is much faster that CPython's own `pow()` function which |
| 683 |
is 900% (855%) slower than MPIR. Support for the GMP library on Unix remains. |
| 684 |
* Added support for *manylinux* wheels. |
| 685 |
* Support for Python 3.7. |
| 686 |
|
| 687 |
Resolved issues |
| 688 |
--------------- |
| 689 |
|
| 690 |
* The DSA parameter 'p' prime was created with 255 bits cleared |
| 691 |
(but still with the correct strength). |
| 692 |
* GH#106. Not all docs were included in the tar ball. |
| 693 |
Thanks to Christopher Hoskin. |
| 694 |
* GH#109. ECDSA verification failed for DER encoded signatures. |
| 695 |
Thanks to Alastair Houghton. |
| 696 |
* Human-friendly messages for padding errors with ECB and CBC. |
| 697 |
|
| 698 |
3.4.7 (26 August 2017) |
| 699 |
++++++++++++++++++++++ |
| 700 |
|
| 701 |
New features |
| 702 |
------------ |
| 703 |
|
| 704 |
* API documentation is made with sphinx instead of epydoc. |
| 705 |
* Start using ``importlib`` instead of ``imp`` where available. |
| 706 |
|
| 707 |
Resolved issues |
| 708 |
--------------- |
| 709 |
|
| 710 |
* GH#82. Fixed PEM header for RSA/DSA public keys. |
| 711 |
|
| 712 |
3.4.6 (18 May 2017) |
| 713 |
+++++++++++++++++++++++ |
| 714 |
|
| 715 |
Resolved issues |
| 716 |
--------------- |
| 717 |
|
| 718 |
* GH#65. Keccak, SHA3, SHAKE and the seek functionality for ChaCha20 were |
| 719 |
not working on big endian machines. Fixed. Thanks to Mike Gilbert. |
| 720 |
* A few fixes in the documentation. |
| 721 |
|
| 722 |
3.4.5 (6 February 2017) |
| 723 |
+++++++++++++++++++++++ |
| 724 |
|
| 725 |
Resolved issues |
| 726 |
--------------- |
| 727 |
|
| 728 |
* The library can also be compiled using MinGW. |
| 729 |
|
| 730 |
3.4.4 (1 February 2017) |
| 731 |
+++++++++++++++++++++++ |
| 732 |
|
| 733 |
Resolved issues |
| 734 |
--------------- |
| 735 |
|
| 736 |
* Removed use of ``alloca()``. |
| 737 |
* [Security] Removed implementation of deprecated "quick check" feature of PGP block cipher mode. |
| 738 |
* Improved the performance of ``scrypt`` by converting some Python to C. |
| 739 |
|
| 740 |
3.4.3 (17 October 2016) |
| 741 |
+++++++++++++++++++++++ |
| 742 |
|
| 743 |
Resolved issues |
| 744 |
--------------- |
| 745 |
|
| 746 |
* Undefined warning was raised with libgmp version < 5 |
| 747 |
* Forgot inclusion of ``alloca.h`` |
| 748 |
* Fixed a warning about type mismatch raised by recent versions of cffi |
| 749 |
|
| 750 |
3.4.2 (8 March 2016) |
| 751 |
++++++++++++++++++++ |
| 752 |
|
| 753 |
|
| 754 |
Resolved issues |
| 755 |
--------------- |
| 756 |
|
| 757 |
* Fix renaming of package for ``install`` command. |
| 758 |
|
| 759 |
|
| 760 |
3.4.1 (21 February 2016) |
| 761 |
++++++++++++++++++++++++ |
| 762 |
|
| 763 |
New features |
| 764 |
------------ |
| 765 |
|
| 766 |
* Added option to install the library under the ``Cryptodome`` package |
| 767 |
(instead of ``Crypto``). |
| 768 |
|
| 769 |
3.4 (7 February 2016) |
| 770 |
+++++++++++++++++++++ |
| 771 |
|
| 772 |
New features |
| 773 |
------------ |
| 774 |
|
| 775 |
* Added ``Crypto.PublicKey.ECC`` module (NIST P-256 curve only), including export/import of ECC keys. |
| 776 |
* Added support for ECDSA (FIPS 186-3 and RFC6979). |
| 777 |
* For CBC/CFB/OFB/CTR cipher objects, ``encrypt()`` and ``decrypt()`` cannot be intermixed. |
| 778 |
* CBC/CFB/OFB, the cipher objects have both ``IV`` and ``iv`` attributes. |
| 779 |
``new()`` accepts ``IV`` as well as ``iv`` as parameter. |
| 780 |
* For CFB/OPENPGP cipher object, ``encrypt()`` and ``decrypt()`` do not require the plaintext |
| 781 |
or ciphertext pieces to have length multiple of the CFB segment size. |
| 782 |
* Added dedicated tests for all cipher modes, including NIST test vectors |
| 783 |
* CTR/CCM/EAX/GCM/SIV/Salsa20/ChaCha20 objects expose the ``nonce`` attribute. |
| 784 |
* For performance reasons, CCM cipher optionally accepted a pre-declaration of |
| 785 |
the length of the associated data, but never checked if the actual data passed |
| 786 |
to the cipher really matched that length. Such check is now enforced. |
| 787 |
* CTR cipher objects accept parameter ``nonce`` and possibly ``initial_value`` in |
| 788 |
alternative to ``counter`` (which is deprecated). |
| 789 |
* All ``iv``/``IV`` and ``nonce`` parameters are optional. If not provided, |
| 790 |
they will be randomly generated (exception: ``nonce`` for CTR mode in case |
| 791 |
of block sizes smaller than 16 bytes). |
| 792 |
* Refactored ARC2 cipher. |
| 793 |
* Added ``Crypto.Cipher.DES3.adjust_key_parity()`` function. |
| 794 |
* Added ``RSA.import_key`` as an alias to the deprecated ``RSA.importKey`` |
| 795 |
(same for the ``DSA`` module). |
| 796 |
* Added ``size_in_bits()`` and ``size_in_bytes()`` methods to ``RsaKey``. |
| 797 |
|
| 798 |
Resolved issues |
| 799 |
--------------- |
| 800 |
|
| 801 |
* RSA key size is now returned correctly in ``RsaKey.__repr__()`` method (kudos to *hannesv*). |
| 802 |
* CTR mode does not modify anymore ``counter`` parameter passed to ``new()`` method. |
| 803 |
* CTR raises ``OverflowError`` instead of ``ValueError`` when the counter wraps around. |
| 804 |
* PEM files with Windows newlines could not be imported. |
| 805 |
* ``Crypto.IO.PEM`` and ``Crypto.IO.PKCS8`` used to accept empty passphrases. |
| 806 |
* GH#6: NotImplementedError now raised for unsupported methods ``sign``, ``verify``, |
| 807 |
``encrypt``, ``decrypt``, ``blind``, ``unblind`` and ``size`` in objects ``RsaKey``, ``DsaKey``, |
| 808 |
``ElGamalKey``. |
| 809 |
|
| 810 |
Breaks in compatibility |
| 811 |
----------------------- |
| 812 |
|
| 813 |
* Parameter ``segment_size`` cannot be 0 for the CFB mode. |
| 814 |
* For OCB ciphers, a final call without parameters to ``encrypt`` must end a sequence |
| 815 |
of calls to ``encrypt`` with data (similarly for ``decrypt``). |
| 816 |
* Key size for ``ARC2``, ``ARC4`` and ``Blowfish`` must be at least 40 bits long (still very weak). |
| 817 |
* DES3 (Triple DES module) does not allow keys that degenerate to Single DES. |
| 818 |
* Removed method ``getRandomNumber`` in ``Crypto.Util.number``. |
| 819 |
* Removed module ``Crypto.pct_warnings``. |
| 820 |
* Removed attribute ``Crypto.PublicKey.RSA.algorithmIdentifier``. |
| 821 |
|
| 822 |
3.3.1 (1 November 2015) |
| 823 |
+++++++++++++++++++++++ |
| 824 |
|
| 825 |
New features |
| 826 |
------------ |
| 827 |
|
| 828 |
* Opt-in for ``update()`` after ``digest()`` for SHA-3, keccak, BLAKE2 hashes |
| 829 |
|
| 830 |
Resolved issues |
| 831 |
--------------- |
| 832 |
|
| 833 |
* Removed unused SHA-3 and keccak test vectors, therefore significantly reducing |
| 834 |
the package from 13MB to 3MB. |
| 835 |
|
| 836 |
Breaks in compatibility |
| 837 |
----------------------- |
| 838 |
|
| 839 |
* Removed method ``copy()`` from BLAKE2 hashes |
| 840 |
* Removed ability to ``update()`` a BLAKE2 hash after the first call to ``(hex)digest()`` |
| 841 |
|
| 842 |
3.3 (29 October 2015) |
| 843 |
+++++++++++++++++++++ |
| 844 |
|
| 845 |
New features |
| 846 |
------------ |
| 847 |
|
| 848 |
* Windows wheels bundle the MPIR library |
| 849 |
* Detection of faults occurring during secret RSA operations |
| 850 |
* Detection of non-prime (weak) q value in DSA domain parameters |
| 851 |
* Added original Keccak hash family (b=1600 only). |
| 852 |
In the process, simplified the C code base for SHA-3. |
| 853 |
* Added SHAKE128 and SHAKE256 (of SHA-3 family) |
| 854 |
|
| 855 |
Resolved issues |
| 856 |
--------------- |
| 857 |
|
| 858 |
* GH#3: gcc 4.4.7 unhappy about double typedef |
| 859 |
|
| 860 |
Breaks in compatibility |
| 861 |
----------------------- |
| 862 |
|
| 863 |
* Removed method ``copy()`` from all SHA-3 hashes |
| 864 |
* Removed ability to ``update()`` a SHA-3 hash after the first call to ``(hex)digest()`` |
| 865 |
|
| 866 |
3.2.1 (9 September 2015) |
| 867 |
++++++++++++++++++++++++ |
| 868 |
|
| 869 |
New features |
| 870 |
------------ |
| 871 |
|
| 872 |
* Windows wheels are automatically built on Appveyor |
| 873 |
|
| 874 |
3.2 (6 September 2015) |
| 875 |
++++++++++++++++++++++ |
| 876 |
|
| 877 |
New features |
| 878 |
------------ |
| 879 |
|
| 880 |
* Added hash functions BLAKE2b and BLAKE2s. |
| 881 |
* Added stream cipher ChaCha20. |
| 882 |
* Added OCB cipher mode. |
| 883 |
* CMAC raises an exception whenever the message length is found to be |
| 884 |
too large and the chance of collisions not negligeable. |
| 885 |
* New attribute ``oid`` for Hash objects with ASN.1 Object ID |
| 886 |
* Added ``Crypto.Signature.pss`` and ``Crypto.Signature.pkcs1_15`` |
| 887 |
* Added NIST test vectors (roughly 1200) for PKCS#1 v1.5 and PSS signatures. |
| 888 |
|
| 889 |
Resolved issues |
| 890 |
--------------- |
| 891 |
|
| 892 |
* tomcrypt_macros.h asm error #1 |
| 893 |
|
| 894 |
Breaks in compatibility |
| 895 |
----------------------- |
| 896 |
|
| 897 |
* Removed keyword ``verify_x509_cert`` from module method ``importKey`` (RSA and DSA). |
| 898 |
* Reverted to original PyCrypto behavior of method ``verify`` in ``PKCS1_v1_5`` |
| 899 |
and ``PKCS1_PSS``. |
| 900 |
|
| 901 |
3.1 (15 March 2015) |
| 902 |
+++++++++++++++++++ |
| 903 |
|
| 904 |
New features |
| 905 |
------------ |
| 906 |
|
| 907 |
* Speed up execution of Public Key algorithms on PyPy, when backed |
| 908 |
by the Gnu Multiprecision (GMP) library. |
| 909 |
* GMP headers and static libraries are not required anymore at the time |
| 910 |
PyCryptodome is built. Instead, the code will automatically use the |
| 911 |
GMP dynamic library (.so/.DLL) if found in the system at runtime. |
| 912 |
* Reduced the amount of C code by almost 40% (4700 lines). |
| 913 |
Modularized and simplified all code (C and Python) related to block ciphers. |
| 914 |
Pycryptodome is now free of CPython extensions. |
| 915 |
* Add support for CI in Windows via Appveyor. |
| 916 |
* RSA and DSA key generation more closely follows FIPS 186-4 (though it is |
| 917 |
not 100% compliant). |
| 918 |
|
| 919 |
Resolved issues |
| 920 |
--------------- |
| 921 |
|
| 922 |
* None |
| 923 |
|
| 924 |
Breaks in compatibility |
| 925 |
----------------------- |
| 926 |
|
| 927 |
* New dependency on ctypes with Python 2.4. |
| 928 |
* The ``counter`` parameter of a CTR mode cipher must be generated via |
| 929 |
``Crypto.Util.Counter``. It cannot be a generic callable anymore. |
| 930 |
* Removed the ``Crypto.Random.Fortuna`` package (due to lack of test vectors). |
| 931 |
* Removed the ``Crypto.Hash.new`` function. |
| 932 |
* The ``allow_wraparound`` parameter of ``Crypto.Util.Counter`` is ignored. |
| 933 |
An exception is always generated if the counter is reused. |
| 934 |
* ``DSA.generate``, ``RSA.generate`` and ``ElGamal.generate`` do not |
| 935 |
accept the ``progress_func`` parameter anymore. |
| 936 |
* Removed ``Crypto.PublicKey.RSA.RSAImplementation``. |
| 937 |
* Removed ``Crypto.PublicKey.DSA.DSAImplementation``. |
| 938 |
* Removed ambiguous method ``size()`` from RSA, DSA and ElGamal keys. |
| 939 |
|
| 940 |
3.0 (24 June 2014) |
| 941 |
++++++++++++++++++ |
| 942 |
|
| 943 |
New features |
| 944 |
------------ |
| 945 |
|
| 946 |
* Initial support for PyPy. |
| 947 |
* SHA-3 hash family based on the April 2014 draft of FIPS 202. |
| 948 |
See modules ``Crypto.Hash.SHA3_224/256/384/512``. |
| 949 |
Initial Keccak patch by Fabrizio Tarizzo. |
| 950 |
* Salsa20 stream cipher. See module ``Crypto.Cipher.Salsa20``. |
| 951 |
Patch by Fabrizio Tarizzo. |
| 952 |
* Colin Percival's ``scrypt`` key derivation function (``Crypto.Protocol.KDF.scrypt``). |
| 953 |
* Proper interface to FIPS 186-3 DSA. See module ``Crypto.Signature.DSS``. |
| 954 |
* Deterministic DSA (RFC6979). Again, see ``Crypto.Signature.DSS``. |
| 955 |
* HMAC-based Extract-and-Expand key derivation function |
| 956 |
(``Crypto.Protocol.KDF.HKDF``, RFC5869). |
| 957 |
* Shamir's Secret Sharing protocol, compatible with *ssss* (128 bits only). |
| 958 |
See module ``Crypto.Protocol.SecretSharing``. |
| 959 |
* Ability to generate a DSA key given the domain parameters. |
| 960 |
* Ability to test installation with a simple ``python -m Crypto.SelfTest``. |
| 961 |
|
| 962 |
Resolved issues |
| 963 |
--------------- |
| 964 |
|
| 965 |
* LP#1193521: ``mpz_powm_sec()`` (and Python) crashed when modulus was odd. |
| 966 |
* Benchmarks work again (they broke when ECB stopped working if |
| 967 |
an IV was passed. Patch by Richard Mitchell. |
| 968 |
* LP#1178485: removed some catch-all exception handlers. |
| 969 |
Patch by Richard Mitchell. |
| 970 |
* LP#1209399: Removal of Python wrappers caused HMAC to silently |
| 971 |
produce the wrong data with SHA-2 algorithms. |
| 972 |
* LP#1279231: remove dead code that does nothing in SHA-2 hashes. |
| 973 |
Patch by Richard Mitchell. |
| 974 |
* LP#1327081: AESNI code accesses memory beyond buffer end. |
| 975 |
* Stricter checks on ciphertext and plaintext size for textbook RSA |
| 976 |
(kudos to sharego). |
| 977 |
|
| 978 |
Breaks in compatibility |
| 979 |
----------------------- |
| 980 |
|
| 981 |
* Removed support for Python < 2.4. |
| 982 |
* Removed the following methods from all 3 public key object types (RSA, DSA, ElGamal): |
| 983 |
|
| 984 |
- ``sign`` |
| 985 |
- ``verify`` |
| 986 |
- ``encrypt`` |
| 987 |
- ``decrypt`` |
| 988 |
- ``blind`` |
| 989 |
- ``unblind`` |
| 990 |
|
| 991 |
Code that uses such methods is doomed anyway. It should be fixed ASAP to |
| 992 |
use the algorithms available in ``Crypto.Signature`` and ``Crypto.Cipher``. |
| 993 |
* The 3 public key object types (RSA, DSA, ElGamal) are now unpickable. |
| 994 |
* Symmetric ciphers do not have a default mode anymore (used to be ECB). |
| 995 |
An expression like ``AES.new(key)`` will now fail. If ECB is the desired mode, |
| 996 |
one has to explicitly use ``AES.new(key, AES.MODE_ECB)``. |
| 997 |
* Unsuccessful verification of a signature will now raise an exception [reverted in 3.2]. |
| 998 |
* Removed the ``Crypto.Random.OSRNG`` package. |
| 999 |
* Removed the ``Crypto.Util.winrandom`` module. |
| 1000 |
* Removed the ``Crypto.Random.randpool`` module. |
| 1001 |
* Removed the ``Crypto.Cipher.XOR`` module. |
| 1002 |
* Removed the ``Crypto.Protocol.AllOrNothing`` module. |
| 1003 |
* Removed the ``Crypto.Protocol.Chaffing`` module. |
| 1004 |
* Removed the parameters ``disabled_shortcut`` and ``overflow`` from ``Crypto.Util.Counter.new``. |
| 1005 |
|
| 1006 |
Other changes |
| 1007 |
------------- |
| 1008 |
|
| 1009 |
* ``Crypto.Random`` stops being a userspace CSPRNG. It is now a pure wrapper over ``os.urandom``. |
| 1010 |
* Added certain resistance against side-channel attacks for GHASH (GCM) and DSA. |
| 1011 |
* More test vectors for ``HMAC-RIPEMD-160``. |
| 1012 |
* Update ``libtomcrypt`` headers and code to v1.17 (kudos to Richard Mitchell). |
| 1013 |
* RSA and DSA keys are checked for consistency as they are imported. |
| 1014 |
* Simplified build process by removing autoconf. |
| 1015 |
* Speed optimization to PBKDF2. |
| 1016 |
* Add support for MSVC. |
| 1017 |
* Replaced HMAC code with a BSD implementation. Clarified that starting from the fork, |
| 1018 |
all contributions are released under the BSD license. |