Re: faster & public domain MD5 implementation

From: Date: Sun, 09 Dec 2007 17:49:02 +0000
Subject: Re: faster & public domain MD5 implementation
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-33884@lists.php.net to get a copy of this message
On Sun, Dec 09, 2007 at 12:53:56PM +0100, Peter Brodersen wrote: > A bit on a side note regarding the php function md5(): In general it > is possible to supply an arbitrary number of bits as input to MD5. > However, the implementation of md5() only takes a sting with octets as > the smallest fragments. > > Would it somehow be possible to supply an input where the number of > bits does not add up to a number divisible by eight? Or is this > feature of md5 simply not relevant to anybody? I don't think there's any demand for this. Even the reference implementation only works on whole octets, so there are no protocol specs or anything (that I am aware of) that would require computation of MD5 on a bitstream of arbitrary length. Alexander

« previous php.internals (#33884) next »