summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_hashlib.py
Commit message (Collapse)AuthorAgeFilesLines
* Closes #15910: MD5 and SHA1 crash when "updated" with strings bigger than ↵Jesus Cea2012-09-101-0/+33
| | | | 2**32 bytes
* Closes #15908: SHA1 crashes in 64 bits when the string to hash is bigger ↵Jesus Cea2012-09-101-0/+8
| | | | than 2**32 bytes
* Consistently raise a TypeError when a non str is passed to hashlib.newGregory P. Smith2012-07-221-0/+1
| | | | regardless of which of the two implementations of new is used.
* Issue #15219: Fix a reference leak when hashlib.new() is called withAmaury Forgeot d'Arc2012-06-281-6/+2
| | | | invalid parameters.
* Fixes Issue #12059: Properly handle missing hash functions even whenGregory P. Smith2011-05-141-0/+18
| | | | | | | the expected builtin modules are not present. This includes a unittest for __get_builtin_constructor() in the face of such an error.
* Issue #7449, part 6: fix test_hashlib for missing threading moduleVictor Stinner2010-04-271-4/+2
| | | | Move @test_support.reap_thread decorator from test_main() to test_threaded_hashing().
* Adds the hashlib.algorithms attribute. See issue7418.Gregory P. Smith2010-03-011-0/+5
|
* Remove unused imports in test modules.Georg Brandl2010-02-071-1/+0
|
* Revert debugprint code in r77607.Gregory P. Smith2010-01-191-4/+0
|
* Add a pydebug mode only debug print to help debug the errors inGregory P. Smith2010-01-191-0/+4
| | | | | | http://www.python.org/dev/buildbot/all/builders/x86%20gentoo%20trunk/builds/5700/ Will be removed shortly.
* add a test about hashing array.arrayBenjamin Peterson2010-01-051-0/+9
|
* Import all implementations of the hash algorithms (OpenSSL & builtin) and runGregory P. Smith2010-01-031-10/+75
| | | | | | | | | the test suite across all that are available. Warns about extension modules that could not be imported when python was compiled with Py_DEBUG. That warning could be made fatal but I didn't want to do that initially as I suspect non setup.py based build processes (windows, any others?) won't compile them all conditionally based on the Py_DEBUG setting today.
* Issue #3745: Undo the requirement for new buffer API only objects to be passedGregory P. Smith2010-01-021-11/+16
| | | | | | to hashlib functions in python 2.x. The module now uses the 's*' for argument parsing which auto encodes unicode objects to the system default encoding for us.
* More yearly updates.Georg Brandl2010-01-011-1/+1
|
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-2/+2
|
* a useful decorator for cleaning up threadsBenjamin Peterson2009-05-141-7/+2
|
* prevent refleaks from threadsBenjamin Peterson2009-05-141-1/+5
|
* Issue #4751: For hashlib algorithms provided by OpenSSL, the PythonGregory P. Smith2009-05-041-3/+46
| | | | GIL is now released during computation on data lengths >= 2048 bytes.
* - Issue #3745: Fix hashlib to always reject unicode and non buffer-apiGregory P. Smith2009-02-131-3/+18
| | | | | | supporting objects as input no matter how it was compiled (built in implementations or external openssl library). (backported from a py3k branch)
* fix possible integer overflows in _hashopenssl #3886Benjamin Peterson2008-09-181-2/+16
|
* email address updateGregory P. Smith2007-09-091-1/+1
|
* [ sf.net patch # 1121611 ]Gregory P. Smith2005-08-211-0/+191
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.