diff options
Diffstat (limited to 'Doc/library/hashlib.rst')
-rw-r--r-- | Doc/library/hashlib.rst | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Doc/library/hashlib.rst b/Doc/library/hashlib.rst index bc8ab2c..f0fe915 100644 --- a/Doc/library/hashlib.rst +++ b/Doc/library/hashlib.rst @@ -40,20 +40,24 @@ concatenation of the data fed to it so far using the :meth:`digest` or .. note:: - For better multithreading performance, the Python GIL is released for + For better multithreading performance, the Python :term:`GIL` is released for strings of more than 2047 bytes at object creation or on update. .. note:: - Feeding string objects is to :meth:`update` is not supported, as hashes work + Feeding string objects into :meth:`update` is not supported, as hashes work on bytes, not on characters. .. index:: single: OpenSSL; (use in module hashlib) Constructors for hash algorithms that are always present in this module are -:func:`md5`, :func:`sha1`, :func:`sha224`, :func:`sha256`, :func:`sha384`, and -:func:`sha512`. Additional algorithms may also be available depending upon the -OpenSSL library that Python uses on your platform. +:func:`md5`, :func:`sha1`, :func:`sha224`, :func:`sha256`, :func:`sha384`, +:func:`sha512`, :func:`sha3_224`, :func:`sha3_256`, :func:`sha3_384`, and +:func:`sha3_512`. Additional algorithms may also be available depending upon +the OpenSSL library that Python uses on your platform. + + .. versionchanged:: 3.4 + Add sha3 family of hash algorithms. For example, to obtain the digest of the byte string ``b'Nobody inspects the spammish repetition'``:: |