Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60803 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83718 invoked from network); 12 Jun 2012 14:22:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jun 2012 14:22:25 -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.213.42 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.213.42 mail-yw0-f42.google.com Received: from [209.85.213.42] ([209.85.213.42:54823] helo=mail-yw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 31/1E-18025-0A057DF4 for ; Tue, 12 Jun 2012 10:22:24 -0400 Received: by yhfq11 with SMTP id q11so3893958yhf.29 for ; Tue, 12 Jun 2012 07:22:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=RKG/tXuURiCQjdvqU0Rw3sGKcYXBZvRSLpI5BZPri54=; b=hlPFwnQYDgjA1q9JEGnIdPHZds1lvg0qAGiWjjx0VwVAPH7ObR8ObBCqAenLC1ieCE piFR2Q37DOJ/XERkS1/p7M2r7j9oCdpNhNcey4DWY/PjD5lydQjm6/i6fRm9GgaKFJ0v YGdzaYCNaMAKE/kIjulGSi1Jp3ZH7dnuXtgjIsZSX4xepVE8IcBuoVaTVqU7LQdk9MN2 Wt3QfvUHzf2LQ1Ms08N2rPxUk2gKPaUpC49SSRlH79Abuv/FQYV8pIcinG457qB9O4CV zpwVYOixgWDxYcE2wnhJhAY+vrpdrww0q1V4pQuRqzAPbjN7pGk518/TehHY+/X+OXOE lxfw== MIME-Version: 1.0 Received: by 10.236.165.74 with SMTP id d50mr26949522yhl.48.1339510941883; Tue, 12 Jun 2012 07:22:21 -0700 (PDT) Received: by 10.147.113.7 with HTTP; Tue, 12 Jun 2012 07:22:21 -0700 (PDT) In-Reply-To: References: Date: Tue, 12 Jun 2012 16:22:21 +0200 Message-ID: To: Anthony Ferrara , Stanislav Malyshev , David Soria Parra Cc: Derick Rethans , internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] PBKDF2 addition to OpenSSL - Why Not Hash? From: pierre.php@gmail.com (Pierre Joye) hi Anthony, On Tue, Jun 12, 2012 at 2:45 PM, Anthony Ferrara wrot= e: >>> I noticed that yesterday a patch was committed to trunk to add PBKDF2 >>> support to the OpenSSL extension. =A0I also noted that in the commit >>> message, the author indicated that he would have rather added it to >>> the hash extension, but wasn't able to. >> >> Why wasn't he been able to? > > I haven't spoken to him, but here's part of his original commit > message ( https://github.com/php/php-src/commit/f4847efc5d58b3375fa0f3269= 158d5e6ab625c21 > ) > > No easy way to put these in the hash extension since we don't really > support optional > parameters to certain algorithms. Implemented in openssl for now since > it has it already > and is pretty stable. > >> Doesn't hurt to have it in both of course... So sure. > > Ok, I'll add it to my list to forward port it to git and submit the PR... I am all for having it in hash as well. But yes, it requires more work that may need additional RFC (changing the API to allow more options need discussions). That being said, I am really not in favor of having it yet in 5.4. For two reasons, first 5.4 is bugs fixes only, no new feature. The second reason is the whole thing behind this addition. As it looks self contained, I am not convinced that it is a good choice, or that it is well tested or designed (api wised) yet. I would prefer to leave it master for now and see if it is usable and stable for php-next. I have to ask to revert this addition in the 5.4 branch. Cheers, --=20 Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org