Adds stand alone _md5 and _sha1 modules for use by hashlib on systems

when the OpenSSL library is either not present or not found by setup.py.

These are derived from the public domain libtomcrypt (libtom.org) just like
the existing sha256 and sha512 modules.
This commit is contained in:
Gregory P. Smith 2007-09-09 06:44:34 +00:00
parent b3b4dbef20
commit 2f21eb3a15
6 changed files with 1118 additions and 16 deletions

View file

@ -9,7 +9,7 @@
Greg Stein (gstein@lyra.org)
Trevor Perrin (trevp@trevp.net)
Copyright (C) 2005 Gregory P. Smith (greg@electricrain.com)
Copyright (C) 2005-2007 Gregory P. Smith (greg@krypto.org)
Licensed to PSF under a Contributor Agreement.
*/
@ -113,7 +113,7 @@ static void SHAcopy(SHAobject *src, SHAobject *dest)
* The library is free for all purposes without any express
* gurantee it works.
*
* Tom St Denis, tomstdenis@iahu.ca, http://libtomcrypt.org
* Tom St Denis, tomstdenis@iahu.ca, http://libtom.org
*/