Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33881 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78144 invoked by uid 1010); 9 Dec 2007 11:54:27 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 78129 invoked from network); 9 Dec 2007 11:54:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Dec 2007 11:54:27 -0000 Authentication-Results: pb1.pair.com header.from=penguin@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=penguin@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 195.41.46.235 as permitted sender) X-PHP-List-Original-Sender: penguin@php.net X-Host-Fingerprint: 195.41.46.235 pfepa.post.tele.dk Linux 2.5 (sometimes 2.4) (4) Received: from [195.41.46.235] ([195.41.46.235:45210] helo=pfepa.post.tele.dk) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1A/43-51375-177DB574 for ; Sun, 09 Dec 2007 06:54:26 -0500 Received: from workpenguin (0x503e79e7.bynxx18.adsl-dhcp.tele.dk [80.62.121.231]) by pfepa.post.tele.dk (Postfix) with SMTP id 4950FFAC00E; Sun, 9 Dec 2007 12:54:22 +0100 (CET) To: solar@openwall.com (Solar Designer) Cc: internals@lists.php.net Date: Sun, 09 Dec 2007 12:53:56 +0100 Message-ID: References: <20071209010552.GA12561@openwall.com> In-Reply-To: <20071209010552.GA12561@openwall.com> X-Mailer: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Re: faster & public domain MD5 implementation From: penguin@php.net (Peter Brodersen) On Sun, 9 Dec 2007 04:05:52 +0300, in php.internals solar@openwall.com (Solar Designer) wrote: >Attached is a quick patch for PHP 5.2.5 that replaces RSA's copyrighted >implementation of MD5 with my public domain one: > > = http://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/popa3d/popa3d/md5/ 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? --=20 - Peter Brodersen