[ python-Bugs-1535502 ] Python 2.5 windows builds should link hashlib with OpenSSL

SourceForge.net noreply at sourceforge.net
Tue Aug 8 08:02:45 CEST 2006


Bugs item #1535502, was opened at 2006-08-06 12:38
Message generated for change (Comment added) made by greg
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1535502&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Windows
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Gregory P. Smith (greg)
Assigned to: Nobody/Anonymous (nobody)
Summary: Python 2.5 windows builds should link hashlib with OpenSSL

Initial Comment:
The Windows builds of Python 2.5 need to be updated to
build and link the hashlib modules with OpenSSL 0.9.8.  

The OpenSSL implementations of the hash algorithms are
*much* faster (often 2-3x) than the fallback C
implementations that python includes for use when
OpenSSL isn't available.

I just tested the python 2.5b3 installer on windows. 
its using the fallback versions rather than OpenSSL:

here's a simple way to check from a running python:

Without OpenSSL:

>>> import hashlib
>>> hashlib.sha1
<built-in function new>

With OpenSSL:

>>> import hashlib
>>> hashlib.sha1
<built-in function openssl_sha1>


(please use openssl 0.9.8; older versions don't include
sha256 and sha512 implementations)

----------------------------------------------------------------------

>Comment By: Gregory P. Smith (greg)
Date: 2006-08-07 23:02

Message:
Logged In: YES 
user_id=413

i've attached a patch to PCbuild/build_ssl.py that should
build the assembly optimized OpenSSL on windows by default.

Still todo: a _hashlib.vcproj file is needed.  though
wouldn't it be easier for me to just build _hashlib.pyd from
within the _ssl.mak file?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1535502&group_id=5470


More information about the Python-bugs-list mailing list