Skip to content

Commit 7c8796a

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 76d270e commit 7c8796a

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
@@ -118,10 +118,10 @@ More condensed:
118118

119119
Using :func:`new` with an algorithm provided by OpenSSL:
120120

121-
>>> h = hashlib.new('ripemd160')
121+
>>> h = hashlib.new('sha512_256')
122122
>>> h.update(b"Nobody inspects the spammish repetition")
123123
>>> h.hexdigest()
124-
'cc4a5ce1b3df48aec5d22d1f16b894a0b894eccc'
124+
'19197dc4d03829df858011c6c87600f994a858103bbc19005f20987aa19a97e2'
125125

126126
Hashlib provides the following constant attributes:
127127

0 commit comments

Comments
 (0)