Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60900 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31325 invoked from network); 20 Jun 2012 09:14:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jun 2012 09:14:11 -0000 Authentication-Results: pb1.pair.com header.from=e.zimuel@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=e.zimuel@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.170 as permitted sender) X-PHP-List-Original-Sender: e.zimuel@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-ob0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:37363] helo=mail-ob0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 42/D0-25489-26491EF4 for ; Wed, 20 Jun 2012 05:14:11 -0400 Received: by obfk16 with SMTP id k16so4149278obf.29 for ; Wed, 20 Jun 2012 02:14:07 -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=Cju8naCbxkQWWnv77ZEumlPnXERRDSwVnhB8xAVYhO8=; b=uMqWwu6qPkB+HoedOdxOnP4PjgoG9agFCtJxi2Npu1xuO+fq5OM2iaB2Tut/iur911 h1tswfjkPn0an/2SNyDPVsttsQ1IjV88l5NBndNlY83bL+76+DjjeULDqqqH97boxB8q 0JhL3QArkpGeIq155bbHIWOrIHFWn8bnuqij36RzpB2ZQJOP9U2x/hIA73mTNYGS3Pld mUlWzp5WvCLOafu7wauxTHatAvVVYgkAeZqmeljSaKgR08OBTxq0aaMlgJKk7ELTY9HZ tweTK/BD7c+zr203YrL6G8QPyaYIC1umPO9R43R+V5LJDoXW20aiBo2JlxF0e1qaKXuZ fr7w== MIME-Version: 1.0 Received: by 10.182.38.66 with SMTP id e2mr23031607obk.31.1340183647808; Wed, 20 Jun 2012 02:14:07 -0700 (PDT) Received: by 10.76.8.103 with HTTP; Wed, 20 Jun 2012 02:14:07 -0700 (PDT) In-Reply-To: References: Date: Wed, 20 Jun 2012 11:14:07 +0200 Message-ID: To: Anthony Ferrara Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Add hash_pbkdf2 function From: e.zimuel@gmail.com (Enrico Zimuel) Hi Anthony, i think your RFC is very good! I like the idea to have PBKDF2 implementation that is able to act, at the same time, as secure hash value generator (without the length parameter) and as key derivation function (with the length parameter). I think we should be consistent with the API of Hash functions of PHP and use the raw_output =3D false to generate hex string and raw_output =3D true to generate binary output. If folks need to convert the output to Base64 they can easily use base64_encode($output) where $output is generated with raw_output =3D true. I don't think this is a big deal. I also agree to insert this function in PHP 5.4, actually in this implementation we reused other hash functions of PHP and the tests for PBKDF2 are fully specified in PKCS #5 test vectors that you used in your patch test. Very nice job! Regards, Enrico 2012/6/19 Anthony Ferrara : > Hello all, > > Since there wasn't that much traffic on the draft version of the RFC, > I've moved it into Proposed. > > =A0https://wiki.php.net/rfc/hash_pbkdf2 > > What are your thoughts? > > Thanks, > > Anthony > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >