Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54794 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56517 invoked from network); 22 Aug 2011 13:05:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Aug 2011 13:05:48 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.220.170 mail-vx0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:48625] helo=mail-vx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2E/A0-49342-A24525E4 for ; Mon, 22 Aug 2011 09:05:47 -0400 Received: by vxh24 with SMTP id 24so4496969vxh.29 for ; Mon, 22 Aug 2011 06:05:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=nt/DQyfWsDffl31+9FmX13oJ6oVRtWQAk3MvI+5BvZM=; b=qNZq2jQiy0o9tvT5YU7NF1AnohobMFjx/zOX9YxJ1A6m7OPIsXMmDSZFsJK8cYXdCK CCiLKIqhuvFePJ5A6hM6XuHJRVymhhD6wKqAvkzaetry4bxm0opU3a8vr3g1lxVjoT/S GBdEDpprqxIqpI75NcGHrA2lElPOhBdTJVLrg= MIME-Version: 1.0 Received: by 10.52.117.242 with SMTP id kh18mr2154585vdb.437.1314018344063; Mon, 22 Aug 2011 06:05:44 -0700 (PDT) Received: by 10.52.158.202 with HTTP; Mon, 22 Aug 2011 06:05:44 -0700 (PDT) In-Reply-To: <20110719234406.GB28946@openwall.com> References: <20110719234406.GB28946@openwall.com> Date: Mon, 22 Aug 2011 15:05:44 +0200 Message-ID: To: Solar Designer Cc: PHP Internals List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] CRYPT_SHA256 fails tests in trunk From: pierre.php@gmail.com (Pierre Joye) hi, it seems that the changes break BC too, pls see https://bugs.php.net/bug.php?id=3D55477 Does that ring a bell to you? On Wed, Jul 20, 2011 at 1:44 AM, Solar Designer wrote: > Hi, > > These tests fail in trunk on my x86_64 build: > > crypt_sha256.phpt > crypt_variation1.phpt > > The differences are like this: > > Expected: <$5$saltstring$5B8vYYiY.CVt1RlTTf8KbXBH3hsxY/GNooZaBBGWEc5> > Got =A0 =A0 =A0 <$5$saltst$JTS/fkywz8NvjeCGmWDndJPi7ZrRFhQKBLNtQZWE2C3> > > That is, the salts are truncated. =A0There's a relevant recent change in > crypt.c involving the line: > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0salt_in_len =3D MIN(PHP_MAX_SALT_LEN, salt= _in_len); > > I did not investigate this for real - I am merely passing the info that > I readily have. =A0I hope this helps. > > Alexander > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --=20 Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org