Skip to content

Commit ffb05bb

Browse files
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> (cherry picked from commit 2d7fdc9) Co-authored-by: Christian Heimes <christian@python.org>
1 parent 70f2ca7 commit ffb05bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: Doc/library/hashlib.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ More condensed:
109109

110110
Using :func:`new` with an algorithm provided by OpenSSL:
111111

112-
>>> h = hashlib.new('ripemd160')
112+
>>> h = hashlib.new('sha512_256')
113113
>>> h.update(b"Nobody inspects the spammish repetition")
114114
>>> h.hexdigest()
115-
'cc4a5ce1b3df48aec5d22d1f16b894a0b894eccc'
115+
'19197dc4d03829df858011c6c87600f994a858103bbc19005f20987aa19a97e2'
116116

117117
Hashlib provides the following constant attributes:
118118

0 commit comments

Comments
 (0)