Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94944 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7772 invoked from network); 8 Aug 2016 17:18:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Aug 2016 17:18:27 -0000 Authentication-Results: pb1.pair.com smtp.mail=charlesportwoodii@ethreal.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=charlesportwoodii@ethreal.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ethreal.net designates 209.85.218.42 as permitted sender) X-PHP-List-Original-Sender: charlesportwoodii@ethreal.net X-Host-Fingerprint: 209.85.218.42 mail-oi0-f42.google.com Received: from [209.85.218.42] ([209.85.218.42:36530] helo=mail-oi0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9E/F5-33134-FDEB8A75 for ; Mon, 08 Aug 2016 13:18:25 -0400 Received: by mail-oi0-f42.google.com with SMTP id f189so180749406oig.3 for ; Mon, 08 Aug 2016 10:18:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ethreal.net; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=gAH2geuMTy9gxRlQCnHb/oQTNplX1gPnCMh4iUZhRpQ=; b=WNPVJ6HDTMXKA0cSmXj7Il8oElcioyqB7WsVFnlcfRgZDZftC1uSJacXGxnVau6rEk OLAtOGjAhuodpEMbDhvTHcav5RVmGSIpFQ91OET9teEe3zl9ZRGCBxAqagAoMG2XlQ9G jOUWXtNOENBNqFFmG5qtfJcOKscmAQ8vDmR0M= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=erianna.com; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=gAH2geuMTy9gxRlQCnHb/oQTNplX1gPnCMh4iUZhRpQ=; b=dEFofKd3oYnWFB0ILPPYg3SMnIqXPg3Au2f8u5AJd7Qa6Pww4lpeZcCEsnDvpVwVFw pwzJfoRagFy8QorXqr262ZD16zXZylcd22vPJ45N0fzANOkNABCwkAVHaMfGIbfocy7T V5LXe4RiGrSQae00JG+8Hb0a7UjkgiSwDzWak= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=gAH2geuMTy9gxRlQCnHb/oQTNplX1gPnCMh4iUZhRpQ=; b=LiECQuomEY8Z/HX8RYDnAPIX6Mynj5sKbG7mwNRti3RTV2k2UKAesRwDG1MqtT2qIS OtHII+5f3j0+zay8SICSbmDW2hsifkowv0sP+UB4+EHiFckb/IXSRr3vMqTb+ie23NmA rw5acy22uhmofErAwTYbDIu/orYGTU1ujdEW/ukacoxUGYa+Ms5wssmaDsDWnKn1f6Xu xxK3efzFHBRxF8ZKKjmwt/KdMnamt6hq0XEoeDJsjiB5s1oqaq5B2/PltDlHhLnl9igq l5fWvnCpRh4L6hStuM3FD3HQYjQPghxD92EgUKZRUZ8J/aDgYp7xmMUJQw3fKk9KU1K1 rzhw== X-Gm-Message-State: AEkoouvskUg81nLbJzoDVrsZP2JRP1uhHV9r5XU7/v4JgqPPD+LWLqjVkRlkcA+cVS0bOUdCY76F5DILIh/ClA== X-Received: by 10.157.54.176 with SMTP id h45mr60475258otc.104.1470676701399; Mon, 08 Aug 2016 10:18:21 -0700 (PDT) MIME-Version: 1.0 Sender: charlesportwoodii@ethreal.net Received: by 10.182.191.72 with HTTP; Mon, 8 Aug 2016 10:18:00 -0700 (PDT) X-Originating-IP: [38.140.54.114] In-Reply-To: References: Date: Mon, 8 Aug 2016 12:18:00 -0500 X-Google-Sender-Auth: t64cUkBwENAD7tmi-FTJaZ4g-yw Message-ID: To: PHP internals , jared.williams1@ntlworld.com Content-Type: multipart/alternative; boundary=001a11418fc25e0b2c0539929a0c Subject: Re: [RFC][DISCUSSION] Argon2 Password Hash From: charlesportwoodii@erianna.com ("Charles R. Portwood II") --001a11418fc25e0b2c0539929a0c Content-Type: text/plain; charset=UTF-8 > > Argon2 also supports keyed hashes and associated data, but seen no > mention of either. > Jared Hi Jared, This is a design decision to prevent changing the PHP API. The Argon2 reference library exposes two ways of working with Argon2 hashes, we can either use the Argon2_Context struct, or pass our data directly to the argon2_hash/verify functions. The former is the only way to provided a hash key and associated data. Since password_hash doesn't expose the salt is generates, and since password_verify doesn't accept an array options, it would be impossible to verify Argon2 hashes created with a hash key and associated data without changing the PHP API for that function. *Charles R. Portwood II* --001a11418fc25e0b2c0539929a0c--