Newsgroups: php.doc,php.internals Path: news.php.net Xref: news.php.net php.doc:969386562 php.internals:98850 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40036 invoked from network); 22 Apr 2017 19:32:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Apr 2017 19:32:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=me@kelunik.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=me@kelunik.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kelunik.com from 81.169.146.219 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 81.169.146.219 mo4-p00-ob.smtp.rzone.de Received: from [81.169.146.219] ([81.169.146.219:20064] helo=mo4-p00-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5D/85-65481-7BFABF85 for ; Sat, 22 Apr 2017 15:32:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1492889523; l=4121; s=domk; d=kelunik.com; h=Content-Type:Cc:To:Subject:Date:From:References:In-Reply-To: MIME-Version; bh=9jK8P2XtWhxD0fXw4hBObabkU6I5iGd8oZCJm1x96Bk=; b=Or3JAX/I6JmC1par0kJaDRXipJa8YbOMuEPkWlArKCF2mFEoBvFQXxyuXpTsH/fbNA co5hN72PXh1V0myaG1lZc/3Q8c5E2JG2Fj89OtqHHm29YGfaTRcTky6WwHU6jftdVHSs VbDNgz81Y37fC598EMK4kUohmpva52RXnSzwg= X-RZG-AUTH: :IWkkfkWkbvHsXQGmRYmUo9mls2vWuiu+7SLDup6E67mzuoNHBqX63Q== X-RZG-CLASS-ID: mo00 Received: by mail-oi0-f42.google.com with SMTP id w12so17068065oiw.3; Sat, 22 Apr 2017 12:32:02 -0700 (PDT) X-Gm-Message-State: AN3rC/5hGUvwgoGH+8S5xjfk8j1Xh3NL4jNzkfM/aKn6J+1x5xiSRoRd davQkkj1Xmd2AA/GyunonUvM+hGKTw== X-Received: by 10.157.11.145 with SMTP id 17mr10629977oth.144.1492889522178; Sat, 22 Apr 2017 12:32:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.156.142 with HTTP; Sat, 22 Apr 2017 12:32:01 -0700 (PDT) In-Reply-To: References: <1924612862.1298112.1492071094545.JavaMail.zimbra@pieterhordijk.com> <690015854.1384408.1492163148986.JavaMail.zimbra@pieterhordijk.com> Date: Sat, 22 Apr 2017 21:32:01 +0200 X-Gmail-Original-Message-ID: Message-ID: To: Yasuo Ohgaki Cc: Pieter Hordijk , Joe Watkins , Andrey Andreev , internals , phpdoc , Nikita Popov Content-Type: multipart/alternative; boundary=001a1136e4c2a89551054dc66d3d Subject: Re: [PHP-DEV] [RFC][VOTE] Improve hash_hkdf() parameter From: me@kelunik.com (Niklas Keller) --001a1136e4c2a89551054dc66d3d Content-Type: text/plain; charset=UTF-8 2017-04-22 21:14 GMT+02:00 Yasuo Ohgaki : > Hi all, > > On Sat, Apr 15, 2017 at 9:17 AM, Yasuo Ohgaki wrote: > > > My opinions are either based on concrete logic or > > recommendations based reliable sources. > > > > I improved hash_hkdf() manual farther more based on RFC 5869 > descriptions. > > https://gist.github.com/anonymous/ace4fa267f20041676f265fe58c3f1ea > > > > Please verify it again. > > > > I would like to finish documentation. > > RFC 5869 clearly states HKDF is a generic key derivation function. > > Omitting salt when key does not have enough entropy is obvious > bad practice or mistake. Even when key has enough entropy, long > life key (IKM) requires good salt for the best key security. These > could be understood from the RFC and other basic crypt theory. > > I'll commit the doc in a few days if there is no more comments on this. > What the... there were multiple concerns regarding the changes already. I'm hereby expressing another strong -1 on these. Regards, Niklas > Andrey, (Or anyone who vote no for the PHP RFC) > > Could you show some good example hash_hkdf() usages that justify > current function signature? I suppose you should have few common and > good examples. > > I cannot think of any common/good example that uses length only or > length/info only. No good example is shown so far. > > Regards, > > -- > Yasuo Ohgaki > yohgaki@ohgaki.net > --001a1136e4c2a89551054dc66d3d--