Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3a314f7

Browse filesBrowse files
authored
pythongh-99108: Mention HACL\* in the hashlib docs. (python#105634)
1 parent 0d1d6ab commit 3a314f7
Copy full SHA for 3a314f7

File tree

1 file changed

+6
-5
lines changed
Filter options

1 file changed

+6
-5
lines changed

‎Doc/library/hashlib.rst

Copy file name to clipboardExpand all lines: Doc/library/hashlib.rst
+6-5Lines changed: 6 additions & 5 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.