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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php