[Patches] [ python-Patches-449757 ] digestsize variable for the md5 module

noreply@sourceforge.net noreply@sourceforge.net
Fri, 10 Aug 2001 02:52:54 -0700


Patches item #449757, was opened at 2001-08-10 02:52
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=449757&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Martin Sjögren (msjogren)
Assigned to: Nobody/Anonymous (nobody)
Summary: digestsize variable for the md5 module

Initial Comment:
The sha module has a digestsize constant (which is 20)
which makes it easy to know how large space to use
(e.g. in a database), while the md5 module doesn't. Yes
I know that it IS 16, but ideally, the two modules
would have the same interface and you could do tricks
like this:

insize = globals()[digestname].digestsize

So, I included a patch to md5module.c that adds a
digestsize constant both to the md5 objects and to the
module dictionary, as in the sha module.

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

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=449757&group_id=5470