Commit Graph

9 Commits

Author SHA1 Message Date
Gregory P. Smith 365a1864fd Fixes 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).
2009-02-12 07:35:29 +00:00
Antoine Pitrou bcd5cbe01e Issue #4751: hashlib now releases the GIL when hashing large buffers
(with a hardwired threshold of 2048 bytes), allowing better parallelization
on multi-CPU systems. Contributed by Lukas Lueg (ebfe) and Victor Stinner.
2009-01-08 21:17:16 +00:00
Benjamin Peterson 78cb491de3 Merged revisions 66496 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66496 | benjamin.peterson | 2008-09-17 20:22:16 -0500 (Wed, 17 Sep 2008) | 1 line

  fix possible integer overflows in _hashopenssl #3886
........
2008-09-24 22:53:33 +00:00
Benjamin Peterson ee8712cda4 #2621 rename test.test_support to test.support 2008-05-20 21:35:26 +00:00
Gregory P. Smith c4119183a2 email address update 2007-09-09 20:17:22 +00:00
Guido van Rossum e22905a06c More changes needed to make things work once bytes and str are truly divorced. 2007-08-27 23:09:25 +00:00
Guido van Rossum 558ca84730 Fix test_hashlib regression caused by my fixing hexdigest() to return
a text string instead of bytes.  (This being hex digits it *should*
be a text string -- that it wasn't before was a misunderstanding on
my part of the C code.)
2007-07-10 20:31:05 +00:00
Guido van Rossum 5ed033b5a2 Change hashlib to return bytes from digest() instead of str8. 2007-07-09 14:29:40 +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