[Patches] [ python-Patches-1121611 ] sha and md5 modules should use
OpenSSL when possible
SourceForge.net
noreply at sourceforge.net
Fri Feb 18 20:21:53 CET 2005
Patches item #1121611, was opened at 2005-02-12 20:33
Message generated for change (Comment added) made by jimjjewett
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1121611&group_id=5470
Category: Modules
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Gregory P. Smith (greg)
Assigned to: Nobody/Anonymous (nobody)
Summary: sha and md5 modules should use OpenSSL when possible
Initial Comment:
The md5 and sha (sha1) modules should use OpenSSL for
the algorithms when it is available as its
implementations are much faster than pythons own.
Attached is an initial patch to use OpenSSL for the sha
module. Its not ready for committing as is yet, but it is
setup to be a generic base for all OpenSSL hashes with
a little bit of work in the future. Tossing this out
there for people to see how trivial it is and enjoy the
speedups.
diff is against HEAD but it should apply to 2.4 just fine.
----------------------------------------------------------------------
Comment By: Jim Jewett (jimjjewett)
Date: 2005-02-18 14:21
Message:
Logged In: YES
user_id=764593
Should the private modules (such as _sha) be placed in a
crypto package, instead of directly in the
parent/everything library?
----------------------------------------------------------------------
Comment By: Gregory P. Smith (greg)
Date: 2005-02-17 01:46
Message:
Logged In: YES
user_id=413
hashes-openssl-002.patch replaces the sha and md5 modules
with a general hashes module that wraps all hashes that
OpenSSL supports.
note that OpenSSLs implementations are much faster than the
previous python versions as it choses versions optimized for
your particular hardware.
Incase python is compiled without openssl the hashes wrapper
falls back on the old python sha and md5 module implementations.
side note: This may be sufficient for the Debian folks to
work around their random odd licensing issue. just have
debian python depend on openssl; use this and remove the old
md5 module/code that wouldn't get used anyways.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1121611&group_id=5470
More information about the Patches
mailing list