summaryrefslogtreecommitdiffstats
path: root/Doc/library/hashlib.rst
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-01-13 08:46:38 (GMT)
committerGitHub <noreply@github.com>2022-01-13 08:46:38 (GMT)
commit443b308fee088e21bbf472c376c5c9e3648f916c (patch)
treed9a0955f1967f9febb6d17806eb7d0d18b55d2ba /Doc/library/hashlib.rst
parenta6ca8eee2254762422f90cf94fbaac34f85db780 (diff)
downloadcpython-443b308fee088e21bbf472c376c5c9e3648f916c.zip
cpython-443b308fee088e21bbf472c376c5c9e3648f916c.tar.gz
cpython-443b308fee088e21bbf472c376c5c9e3648f916c.tar.bz2
bpo-40479: Fix hashlib's usedforsecurity for OpenSSL 3.0.0 (GH-30455)
Diffstat (limited to 'Doc/library/hashlib.rst')
-rw-r--r--Doc/library/hashlib.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/hashlib.rst b/Doc/library/hashlib.rst
index 0c3bd7b..53320d9 100644
--- a/Doc/library/hashlib.rst
+++ b/Doc/library/hashlib.rst
@@ -120,10 +120,10 @@ More condensed:
Using :func:`new` with an algorithm provided by OpenSSL:
- >>> h = hashlib.new('sha512_256')
+ >>> h = hashlib.new('sha256')
>>> h.update(b"Nobody inspects the spammish repetition")
>>> h.hexdigest()
- '19197dc4d03829df858011c6c87600f994a858103bbc19005f20987aa19a97e2'
+ '031edd7d41651593c5fe5c006fa5752b37fddff7bc4e843aa6af0c950f4b9406'
Hashlib provides the following constant attributes: