Commit Graph

16 Commits

Author SHA1 Message Date
Gregory P. Smith e6390a1503 Adds the hashlib.algorithms attribute. See issue7418. 2010-03-01 02:01:47 +00:00
Georg Brandl a4f46e1292 Remove unused imports in test modules. 2010-02-07 17:03:15 +00:00
Gregory P. Smith 8926108bfb Revert debugprint code in r77607. 2010-01-19 08:25:26 +00:00
Gregory P. Smith 8f6f42621a Add a pydebug mode only debug print to help debug the errors in
http://www.python.org/dev/buildbot/all/builders/x86%20gentoo%20trunk/builds/5700/

Will be removed shortly.
2010-01-19 08:01:00 +00:00
Benjamin Peterson 2b6e4bc3ad add a test about hashing array.array 2010-01-05 00:04:19 +00:00
Gregory P. Smith 6dcdcde2a8 Import all implementations of the hash algorithms (OpenSSL & builtin) and run
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.
2010-01-03 00:19:04 +00:00
Gregory P. Smith 443ec6875f Issue #3745: Undo the requirement for new buffer API only objects to be passed
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.
2010-01-02 22:28:48 +00:00
Georg Brandl 8cdc9bc901 More yearly updates. 2010-01-01 13:07:05 +00:00
Benjamin Peterson 5c8da86f3a convert usage of fail* to assert* 2009-06-30 22:57:08 +00:00
Benjamin Peterson 0db3cd6700 a useful decorator for cleaning up threads 2009-05-14 22:40:34 +00:00
Benjamin Peterson 92d102bf6d prevent refleaks from threads 2009-05-14 22:37:49 +00:00
Gregory P. Smith d02eedacab Issue #4751: For hashlib algorithms provided by OpenSSL, the Python
GIL is now released during computation on data lengths >= 2048 bytes.
2009-05-04 00:16:49 +00:00
Gregory P. Smith ea38826ab2 - Issue #3745: Fix hashlib to always reject unicode and non buffer-api
supporting objects as input no matter how it was compiled (built in
  implementations or external openssl library).
(backported from a py3k branch)
2009-02-13 03:00:00 +00:00
Benjamin Peterson 8c2b7dc463 fix possible integer overflows in _hashopenssl #3886 2008-09-18 01:22:16 +00:00
Gregory P. Smith f80578548d email address update 2007-09-09 20:25:00 +00:00
Gregory P. Smith f21a5f7739 [ sf.net patch # 1121611 ]
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.
2005-08-21 18:45:59 +00:00