summaryrefslogtreecommitdiffstats
path: root/Lib/hashlib.py
Commit message (Collapse)AuthorAgeFilesLines
* 00146-hashlib-fips.patchFedora Python maintainers2020-09-291-52/+34
| | | | | | | | | | | | | | | | | | | 00146 # Support OpenSSL FIPS mode (e.g. when OPENSSL_FORCE_FIPS_MODE=1 is set) - handle failures from OpenSSL (e.g. on attempts to use MD5 in a FIPS-enforcing environment) - add a new "usedforsecurity" keyword argument to the various digest algorithms in hashlib so that you can whitelist a callsite with "usedforsecurity=False" (sent upstream for python 3 as http://bugs.python.org/issue9216; this is a backport to python 2.7; see RHEL6 patch 119) - enforce usage of the _hashlib implementation: don't fall back to the _md5 and _sha* modules (leading to clearer error messages if fips selftests fail) - don't build the _md5 and _sha* modules; rely on the _hashlib implementation of hashlib (for example, md5.py will use _hashlib's implementation of MD5, if permitted by the FIPS setting) (rhbz#563986)
* Removed duplicated words in in comments and docs.Serhiy Storchaka2014-12-011-1/+1
|
* PEP 466: backport hashlib algorithm constants (closes #21307)Benjamin Peterson2014-08-281-3/+11
|
* backport hashlib.pbkdf2_hmac per PEP 466 (closes #21304)Benjamin Peterson2014-05-311-1/+68
| | | | Backport by Alex Gaynor.
* Consistently raise a TypeError when a non str is passed to hashlib.newGregory P. Smith2012-07-221-1/+1
| | | | regardless of which of the two implementations of new is used.
* Fixes Issue #12059: Properly handle missing hash functions even whenGregory P. Smith2011-05-141-20/+23
| | | | | | | the expected builtin modules are not present. This includes a unittest for __get_builtin_constructor() in the face of such an error.
* Adds the hashlib.algorithms attribute. See issue7418.Gregory P. Smith2010-03-011-1/+3
|
* Clean up the C library import code (based on suggestions in issue6281).Gregory P. Smith2009-08-161-33/+33
|
* issue3715: docstring representation of hex escaped string needs to be doubleGregory P. Smith2008-08-311-1/+1
| | | | escaped.
* Mention that crc32 and adler32 are available in a different module (zlib).Gregory P. Smith2008-03-191-0/+3
| | | | Some people look for them in hashlib.
* email address updateGregory P. Smith2007-09-091-1/+1
|
* Bug #1586773: extend hashlib docstring.Georg Brandl2006-10-291-1/+30
|
* Whitespace normalization (via reindent.py).Tim Peters2005-08-261-1/+0
|
* [ sf.net patch # 1121611 ]Gregory P. Smith2005-08-211-0/+110
A new hashlib module to replace the md5 and sha modules. It adds support for additional secure hashes such as SHA-256 and SHA-512. The hashlib module uses OpenSSL for fast platform optimized implementations of algorithms when available. The old md5 and sha modules still exist as wrappers around hashlib to preserve backwards compatibility.