Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98775 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6201 invoked from network); 12 Apr 2017 10:46:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Apr 2017 10:46:55 -0000 Authentication-Results: pb1.pair.com header.from=pthreads@pthreads.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=pthreads@pthreads.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pthreads.org from 209.85.128.172 cause and error) X-PHP-List-Original-Sender: pthreads@pthreads.org X-Host-Fingerprint: 209.85.128.172 mail-wr0-f172.google.com Received: from [209.85.128.172] ([209.85.128.172:34020] helo=mail-wr0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BC/68-18853-F950EE85 for ; Wed, 12 Apr 2017 06:46:55 -0400 Received: by mail-wr0-f172.google.com with SMTP id z109so14754155wrb.1 for ; Wed, 12 Apr 2017 03:46:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pthreads-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=NrGzNCNsb+yvfJXOdKGEQBhPgqaEKYokt/FfUftdLOQ=; b=fh8sA/bvLHu/JYMuG9gQNFMjCLOqomS4k1mXQzTJIWfMHJPqohLE3UITWAIGh6MiQ8 JQhODlOdPz+oz5CiyQcYgU6om7WoYnvPF8EYrYXiL7xd12PUcf3bBIIqJV8ALum9hD7t qcLRgYxwce3F6J6KdLh3hknmqQYMaIF9MPw3Ihh8wwXxtICdWUAcH7Ri4j/8/+h1Wr5O xynugpJ76qpW7xAHGW9ZhmrIXwqrENx8ATi/jp7YkiF/rttlDfmbmOffaUj2o5x9kEI1 VsBXLBd+zt51bdJr2V52Mcc1it0SftAgkIVolbr10j8Q1l5L/75bIkFxmDG2bfAEHVZZ bo9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=NrGzNCNsb+yvfJXOdKGEQBhPgqaEKYokt/FfUftdLOQ=; b=Fi+o5FEB2N8sM57bhC7NmWKo32aPm+cEyf+/w+PkzkCRTkpOKm3oA6Kj7VQqKg+AKb q8kEdcSkcBGL+3yrX/uRqNB3IkMRa+RYCp7RDok29GOjt2Of+l1GOlepbHq3uqlizT42 LVV2q8dK5FSN8vBZyY6Vh0yXDrMD2SrUT/Wa9ptbNlmGb/wYkzctBmrrtc7oKh5qR2W1 GFPqaGgmUPc0P95Z27oaWtUMFMe1iHnN9LrqxcOm8RSq2IuY1hnsgTQqUftqWnU/2Oif loc1dpuzNRjugxkGrVMaUuv/sKP3O9732gGRzj2lgKEjuCSKtx2jFQBndJrPJsm0mmIO 8+Qw== X-Gm-Message-State: AN3rC/4QkN+mKezFGc55EAJcgu9eX2HOIH2Vpo7kLTE8q6ljBFFgy3VqjvWnPBlaqC4u3zx61qOyWrVSHSMM7Q== X-Received: by 10.223.165.67 with SMTP id j3mr2526801wrb.157.1491994011874; Wed, 12 Apr 2017 03:46:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.173.76 with HTTP; Wed, 12 Apr 2017 03:46:51 -0700 (PDT) X-Originating-IP: [81.143.223.160] In-Reply-To: References: <0285A0ED-A39F-46C9-A927-3C786F2B256D@koalephant.com> Date: Wed, 12 Apr 2017 11:46:51 +0100 Message-ID: To: Yasuo Ohgaki Cc: Stephen Reay , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=f403045f12be15d874054cf5ed64 Subject: Re: [PHP-DEV] [RFC][VOTE] Improve hash_hkdf() parameter From: pthreads@pthreads.org (Joe Watkins) --f403045f12be15d874054cf5ed64 Content-Type: text/plain; charset=UTF-8 Morning, This RFC was left open for 5 days past the end of voting as declared on the RFC. I have closed the vote, and moved it out of voting section on RFC index. Cheers Joe On Sat, Apr 1, 2017 at 3:50 AM, Yasuo Ohgaki wrote: > Hi all, > > - insecure signature (it ignores strong RFC 5689 recommendation) > s/RFC 5689/RFC 5869/ > > On Sat, Apr 1, 2017 at 11:27 AM, Yasuo Ohgaki wrote: > > > > > Given that the function is live in the wild, massively changing the order > >> of things and defaults is an instant red flag for myself, and I believe > a > >> lot of other people. > >> > > > > Aside from it should not be merged into PHP 7.1 in the first place. > > There are only 2 (or 3) bug fix versions released. Fixing mistake ASAP is > > better. IMHO. > > > > > > To me this sounds more like an issue that could be relatively quickly > >> improved by a documentation update that highlights how to securely use > the > >> function. > >> > > > > While documentation may work, it seems silly for me to write, > > > > Even if "salt" is the last optional parameter, users must set > > appropriate "salt" whenever it is possible for maximum key security. > > > > Another possible resolution could be reverting hash_hkdf() merge from 7.1 > branch. > Basic hash_hkdf() operation could be done by hash_hmac() easily. > > The merge should have had PHP RFC. > Reverting hash_hkdf() merge may work better. > > Regards, > > -- > Yasuo Ohgaki > yohgaki@ohgaki.net > --f403045f12be15d874054cf5ed64--