Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60805 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 890 invoked from network); 12 Jun 2012 17:46:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jun 2012 17:46:26 -0000 Authentication-Results: pb1.pair.com header.from=ircmaxell@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ircmaxell@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.42 as permitted sender) X-PHP-List-Original-Sender: ircmaxell@gmail.com X-Host-Fingerprint: 209.85.216.42 mail-qa0-f42.google.com Received: from [209.85.216.42] ([209.85.216.42:43723] helo=mail-qa0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 42/E0-18025-17087DF4 for ; Tue, 12 Jun 2012 13:46:26 -0400 Received: by qafi31 with SMTP id i31so3069620qaf.8 for ; Tue, 12 Jun 2012 10:46:23 -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=k/oVh4XZZdU762BTe3aW8bkKF0e/AK8VaHH9jbm36N8=; b=W2iUCieC9mJtEXNhFyjdlD/YqNHki2BQDlxY2sU0f1+WfJcFwwweybWdwDKarYOhIO Xib+ifrR2kK3Hj2JvJAy8bn28XxlX2AyIrDcsW8vR8G30siKX9AGW0cNB9l0S3QQYSR9 MgbzBsz7aCg6h9QXMpOKGKLkVES4k1GyTjJXUqSkN53uplB6voBuHh6MgS1UIh0Y/ohy +JPenjfTO7HFtHNzbHC8E+P40lkPLXYJxUM3uk1Z8nhKXgyf+NZIpTUimUseEXXNF7qV 4wR4lS53RDooROlFR4VlOVqtw7Z9q/0LWrWMs3a6LmJgesYo4C8PuvuB1QFb1XDhHiFe 54dw== MIME-Version: 1.0 Received: by 10.224.184.1 with SMTP id ci1mr21179252qab.97.1339523183045; Tue, 12 Jun 2012 10:46:23 -0700 (PDT) Received: by 10.229.49.204 with HTTP; Tue, 12 Jun 2012 10:46:22 -0700 (PDT) In-Reply-To: References: Date: Tue, 12 Jun 2012 13:46:22 -0400 Message-ID: To: Pierre Joye Cc: Stanislav Malyshev , David Soria Parra , 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: ircmaxell@gmail.com (Anthony Ferrara) I've submitted a Pull Request for this feature. I'll whip up an RFC for it tonight and propose it. https://github.com/php/php-src/pull/105 Thanks, Anthony On Tue, Jun 12, 2012 at 10:38 AM, Anthony Ferrara wro= te: > Pierre, > >> 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). > > What options are needed? The API refactoring that I have done has all > been to static functions, and extracting methods from public ones. I > didn't need to change any public APIs (that I saw). =A0I'm not sure what > "more options" intended to mean (by you, or by Scott), but I don't see > the need, as it's implemented and passes tests without that. If I'm > missing something, please let me know. > > I'm not arguing that it doesn't need an RFC, just trying to clarify > the API change. The only API change would be the addition of the > method (at least based on my implementation)... So if it still needs > an RFC, I'm fine with that. I'll whip one up for mine after I get the > PR tested (I have it applied successfully, just want to verify it a > few more times by re-compiling a few times before submitting the PR > and writing the RFC): > https://github.com/ircmaxell/php-src/tree/hash_pbkdf2 > >> 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. > > No argument there at all. While it would be nice to get it in 5.4, I > can certainly live with 5.5. Especially with the more rapid release > cycles that have been occurring here (instead of 3 to 4 years between > releases). > > Thanks! > > Anthony