Skip to content

Commit bf6e0e6

Browse files
[3.12] gh-99108: Mention HACL\* in the hashlib docs. (GH-105634) (#105635)
gh-99108: Mention HACL\* in the hashlib docs. (GH-105634) (cherry picked from commit 3a314f7) Co-authored-by: Gregory P. Smith <[email protected]>
1 parent e2bbe62 commit bf6e0e6

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Doc/library/hashlib.rst

+6-5
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ accessible by name via :func:`new`. See :data:`algorithms_available`.
9393
.. versionchanged:: 3.9
9494
Hashlib now uses SHA3 and SHAKE from OpenSSL if it provides it.
9595

96+
.. versionchanged:: 3.12
97+
For any of the MD5, SHA1, SHA2, or SHA3 algorithms that the linked
98+
OpenSSL does not provide we fall back to a verified implementation from
99+
the `HACL\* project`_.
100+
96101
Usage
97102
-----
98103

@@ -205,11 +210,6 @@ A hash object has the following methods:
205210
concatenation of all the arguments: ``m.update(a); m.update(b)`` is
206211
equivalent to ``m.update(a+b)``.
207212

208-
.. versionchanged:: 3.1
209-
The Python GIL is released to allow other threads to run while hash
210-
updates on data larger than 2047 bytes is taking place when using hash
211-
algorithms supplied by OpenSSL.
212-
213213

214214
.. method:: hash.digest()
215215

@@ -811,6 +811,7 @@ Domain Dedication 1.0 Universal:
811811
.. _Attacks on cryptographic hash algorithms: https://en.wikipedia.org/wiki/Cryptographic_hash_function#Attacks_on_cryptographic_hash_algorithms
812812
.. _the FIPS 180-4 standard: https://csrc.nist.gov/publications/detail/fips/180/4/final
813813
.. _the FIPS 202 standard: https://csrc.nist.gov/publications/detail/fips/202/final
814+
.. _HACL\* project: https://github.com/hacl-star/hacl-star
814815

815816

816817
.. _hashlib-seealso:

0 commit comments

Comments
 (0)