diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-04-09 20:46:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-09 20:46:17 (GMT) |
commit | 7c8796a750fb108be99e0bc50ca3dba000d77e54 (patch) | |
tree | 13312645f4940ec4ecf53d6c9e4fc5ec3080444b | |
parent | 76d270ec2b776cc5331935cc58c2d63622f1c0e9 (diff) | |
download | cpython-7c8796a750fb108be99e0bc50ca3dba000d77e54.zip cpython-7c8796a750fb108be99e0bc50ca3dba000d77e54.tar.gz cpython-7c8796a750fb108be99e0bc50ca3dba000d77e54.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>
(cherry picked from commit 2d7fdc90731e132f9d6b43852ee112f25831394b)
Co-authored-by: Christian Heimes <christian@python.org>
-rw-r--r-- | Doc/library/hashlib.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/hashlib.rst b/Doc/library/hashlib.rst index d644974..5a507c1 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: |