Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:90467 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44748 invoked from network); 10 Jan 2016 21:59:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jan 2016 21:59:21 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.51 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.51 mail-wm0-f51.google.com Received: from [74.125.82.51] ([74.125.82.51:38460] helo=mail-wm0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 17/12-14657-734D2965 for ; Sun, 10 Jan 2016 16:59:20 -0500 Received: by mail-wm0-f51.google.com with SMTP id b14so242708948wmb.1 for ; Sun, 10 Jan 2016 13:59:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:references:to:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=nU808vSfXsgnv+A33vKD8wM7Yrgn6Nt3DrVs2uO6YOE=; b=pgafRFnLoZ1c3q1LSQoUwUfALcNzmknQx4qsIZ7+96xZyX9eZ3AYFtFmffY/wsMMun zGsyk4BuiKSQbep/Xwdwe0s+gX8GM1J8NxHsCng2Ud5ZF5Q95D+bqU/k1XgfMOjvuhuT sCvc79kWJsXhcQfk/czySlZSlh/8112iLVMOEK9D1GeN/RLyp09xhg/GE1UqNgNM2NPw +6Ke6+TSDf0nO8SS+vhSdEnC0R3TjBCYH8CcaXWKd1tDxYCol2eX2a0vcFtNpMh9degN Wjjx19f/J7xx1Ptc4o2kF4e1F5DbIn9ekzKYpBBjlFLPW7w6qWV2yg06gu8a9ZF4ofIX LOIw== X-Received: by 10.28.87.135 with SMTP id l129mr10593141wmb.9.1452463157536; Sun, 10 Jan 2016 13:59:17 -0800 (PST) Received: from [192.168.1.189] ([2.31.24.87]) by smtp.googlemail.com with ESMTPSA id gl10sm116575003wjb.30.2016.01.10.13.59.16 for (version=TLSv1/SSLv3 cipher=OTHER); Sun, 10 Jan 2016 13:59:17 -0800 (PST) References: <5692CDB6.5050905@gmail.com> To: PHP Internals Message-ID: <5692D424.2010908@gmail.com> Date: Sun, 10 Jan 2016 21:59:00 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Libsodium From: rowan.collins@gmail.com (Rowan Collins) On 10/01/2016 21:41, Scott Arciszewski wrote: > Hi Rowan, > >> >I think what people are suggesting is not that libsodium shouldn't be >> >supported under-the-hood, just that the fact you're using it shouldn't be >> >exposed to userland. > These are separate concerns. Let's call them Sodium and SimpleSodium. > > With Sodium, power users gain the ability to write software that > directly uses low-level primitives in PHP without requiring their > users to install dependencies (i.e. from PECL). [ > > SimpleSodium is a driver for the simple cryptography wrapper. As noted on the other thread, I think what people are looking for is actually somewhere between the two - something for power users to use *without tying their code to libsodium*. Code written using mcrypt_* functions is now facing an annoying upgrade path; code written with sodium_* functions now may face the same some years in the future, who knows? PHP should not be maintaining its own low-level implementations of crypto, but it should seem to the user as though it does - they should be asking PHP for a particular cipher / mode / etc, not asking libsodium for one via a thin PHP wrapper. > You can have SimpleSodium without Sodium, but if we don't get Sodium into core > I will, personally, not be putting forth one more ounce of time or > effort into helping the PHP core so who knows maybe not? Obviously, this is entirely your prerogative, but it seems quite a black-and-white stance - maybe leave a bit of leeway for understanding other people's concerns before threatening to abandon work which would be very much appreciated. Regards, -- Rowan Collins [IMSoP]