bpo-29410: Change the default hash algorithm to SipHash13. (GH-28752)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Co-authored-by: Christian Heimes <christian@python.org>
This commit is contained in:
Inada Naoki 2021-10-10 17:29:46 +09:00 • committed by GitHub
parent a1c3c9e824
commit ad970e8623
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 123 additions and 26 deletions

View file

@ -416,15 +416,19 @@ Libraries options
Security Options
----------------
.. cmdoption:: --with-hash-algorithm=[fnv|siphash24]
.. cmdoption:: --with-hash-algorithm=[fnv|siphash13|siphash24]
Select hash algorithm for use in ``Python/pyhash.c``:
* ``siphash24`` (default).
* ``fnv``;
* ``siphash13`` (default);
* ``siphash24``;
* ``fnv``.
.. versionadded:: 3.4
.. versionadded:: 3.11
``siphash13`` is added and it is the new default.
.. cmdoption:: --with-builtin-hashlib-hashes=md5,sha1,sha256,sha512,sha3,blake2
Built-in hash modules: