Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60821 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65914 invoked from network); 14 Jun 2012 11:08:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jun 2012 11:08: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.53 as permitted sender) X-PHP-List-Original-Sender: ircmaxell@gmail.com X-Host-Fingerprint: 209.85.216.53 mail-qa0-f53.google.com Received: from [209.85.216.53] ([209.85.216.53:58395] helo=mail-qa0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D0/53-39100-826C9DF4 for ; Thu, 14 Jun 2012 07:08:25 -0400 Received: by qadz32 with SMTP id z32so2150697qad.12 for ; Thu, 14 Jun 2012 04:08:22 -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; bh=OFkDf63Zx+070uDmdSolInDRzce0hQJsz60k863SKLU=; b=PwUHH4+zSfj3PpyjpRhed1IgRKnXedqZRL4pcoHjTvqrVmZ7gigcq9MRCJ5+CfFZ6+ oTUewpOuCf6sPYKKG4DrMJYZOdmaPbJB0Wh++ssVo1Nupq4pr0F9hOW5EW+VwwsU1X1J cpE6NrrYWD9nl9HSmkk9ARNB2OWtHnR/nP8boNi4epDjNC9vKq865mtGtQBOHCXT6J82 YhOd8Yeb2I96W6zGbmhHEW6nEEcZrVPmJNIxxhAN0EYE049ioslkzFhiahkVCyqz5puH +FriDgW5qSeKxJrbDik2+8zxuoYzczzdFQsyRAsw23/k07zliz0SO5IhvtPiJ/0O2g74 XPww== MIME-Version: 1.0 Received: by 10.224.191.3 with SMTP id dk3mr3259365qab.99.1339672102249; Thu, 14 Jun 2012 04:08:22 -0700 (PDT) Received: by 10.229.49.204 with HTTP; Thu, 14 Jun 2012 04:08:22 -0700 (PDT) In-Reply-To: References: Date: Thu, 14 Jun 2012 07:08:22 -0400 Message-ID: To: Simon Schick Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [DRAFT] RFC - hash_pbkdf2 addition From: ircmaxell@gmail.com (Anthony Ferrara) Simon, > I personally would rename the 2nd parameter to $data as this function is not > only meant for creating secure hashes from passwords. Well, I understand your sentiment. But PBKDF stands for Password Based Key Derivation Function. Even the spec calls that parameter password: PBKDF2 (P, S, c, dkLen) Options: PRF underlying pseudorandom function (hLen denotes the length in octets of the pseudorandom function output) Input: P password, an octet string S salt, an octet string c iteration count, a positive integer dkLen intended length in octets of the derived key, a positive integer, at most (2^32 - 1) * hLen Output: DK derived key, a dkLen-octet string So in this case, I feel calling the parameter "password" is justified... Thanks, Anthony