summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2021-04-09 20:23:10 (GMT)
committerGitHub <noreply@github.com>2021-04-09 20:23:10 (GMT)
commit2d7fdc90731e132f9d6b43852ee112f25831394b (patch)
treed2be8f1dc39a48975fd2dbe00bbee4fe21112f6a /Doc
parent6f37ebc61e9e0d13bcb1a2ddb7fc9723c04b6372 (diff)
downloadcpython-2d7fdc90731e132f9d6b43852ee112f25831394b.zip
cpython-2d7fdc90731e132f9d6b43852ee112f25831394b.tar.gz
cpython-2d7fdc90731e132f9d6b43852ee112f25831394b.tar.bz2
bpo-38820: OpenSSL 3.0.0: Use supported hashing algos in doc test (GH-25319)
ripemd160 is not available in OpenSSL 3.0.0's default crypto provider. It's only present in legacy provider. Signed-off-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Doc')
-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 7bb030b..6f92152 100644
--- a/Doc/library/hashlib.rst
+++ b/Doc/library/hashlib.rst
@@ -118,10 +118,10 @@ More condensed:
Using :func:`new` with an algorithm provided by OpenSSL:
- >>> h = hashlib.new('ripemd160')
+ >>> h = hashlib.new('sha512_256')
>>> h.update(b"Nobody inspects the spammish repetition")
>>> h.hexdigest()
- 'cc4a5ce1b3df48aec5d22d1f16b894a0b894eccc'
+ '19197dc4d03829df858011c6c87600f994a858103bbc19005f20987aa19a97e2'
Hashlib provides the following constant attributes: