diff options
author | Christian Heimes <christian@python.org> | 2022-01-13 08:46:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-13 08:46:38 (GMT) |
commit | 443b308fee088e21bbf472c376c5c9e3648f916c (patch) | |
tree | d9a0955f1967f9febb6d17806eb7d0d18b55d2ba /Doc/library/hashlib.rst | |
parent | a6ca8eee2254762422f90cf94fbaac34f85db780 (diff) | |
download | cpython-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.rst | 4 |
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: |