Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:90253 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11844 invoked from network); 7 Jan 2016 15:32:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jan 2016 15:32:05 -0000 Authentication-Results: pb1.pair.com header.from=scott@paragonie.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=scott@paragonie.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain paragonie.com from 209.85.217.175 cause and error) X-PHP-List-Original-Sender: scott@paragonie.com X-Host-Fingerprint: 209.85.217.175 mail-lb0-f175.google.com Received: from [209.85.217.175] ([209.85.217.175:33068] helo=mail-lb0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 44/60-09042-2F48E865 for ; Thu, 07 Jan 2016 10:32:05 -0500 Received: by mail-lb0-f175.google.com with SMTP id sv6so202136728lbb.0 for ; Thu, 07 Jan 2016 07:32:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragonie-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=xfEFio5C3yvfrc8enA2vA42eGFZRKyayVghQivNtfEU=; b=j8tYLMSwiR6MijD71f9pmVAZtHn17OCVkOZKiyWeTlsoxKB/7b3dxtAZ/u9HzB/pFr X+nAeYUEmw7Vb1aQJvDrRHCId9mC5qOXkb1iSAhnBkMxMnDproXauCS4FxMluvpBnM9f F3/SYJXulIvQjpsFePwUHmXkeJbF37RkX2C5LHUCP+zZto8At1UihF7nUZFRjcY5Pf+U VJ+VORztIIhkz4LpfqcJIF/xhoFlB8hiIF0NCrU34Q0trQEmbwbuIkzMYuGv8ypC/Dkd wJsRKmnsw/YHcHWNvyWd5fBhOyYQ4a9r3dx1yZy/ifrAX5XHrJifdyt/i4TYdXa9Y/AZ tdHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=xfEFio5C3yvfrc8enA2vA42eGFZRKyayVghQivNtfEU=; b=k7VFh8rAClk8bnsXYqURb7ewhNugdBZEyNKGyy8aYZV6iVgc/hwZegSCvRc/N2ghPu UVqRHGeOlyamGPFKAUrc1EL3d6Ol5HeC0j5B0fy3BYiSPOHDEeSJW3YXm/NDHF5lsGqI W3H2GsBtzswQJIWmPz5jWXVTpyVSjixeDsP40V418TakeHVg1S4iWemyRGLiCwRH4wtN g6FpQTgTT+p8dOc1RaU50FyGcePX2Pi6zLrhBPBTpbdEwBkSuezlZK0ehYDUEwIuWuWT D9IBDAI6lCZx4o3ttzkl2gwRZW3ZOmNLVCLCVUyNN3cO9n/VFiPoMLRuIJV3F/fyNT+Y ZK1g== X-Gm-Message-State: ALoCoQnMOw/seQJRe5RA7Kd7hgQxgr5ciE8LPMtIsCMnpgghkFo+pB4FbWfywuUt3jRO6zhnJKz4jwPPlMzuSFtoY0dBbyPY9A== MIME-Version: 1.0 X-Received: by 10.112.135.39 with SMTP id pp7mr1033832lbb.43.1452180719350; Thu, 07 Jan 2016 07:31:59 -0800 (PST) Received: by 10.114.160.13 with HTTP; Thu, 7 Jan 2016 07:31:59 -0800 (PST) In-Reply-To: References: Date: Thu, 7 Jan 2016 10:31:59 -0500 Message-ID: To: Bishop Bettini , jedisct1@pureftpd.org Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Libsodium From: scott@paragonie.com (Scott Arciszewski) On Thu, Jan 7, 2016 at 10:20 AM, Bishop Bettini wrote: > On Thu, Jan 7, 2016 at 8:26 AM, Scott Arciszewski > wrote: >> >> I've updated the RFC to make libsodium a core PHP extension in 7.1, to >> include references to the online documentation. >> >> https://wiki.php.net/rfc/libsodium >> >> All new functions and classes would exist in the Sodium namespace. e.g. >> >> $ciphertext = \Sodium\crypto_box($message, $nonce, $keypair); >> >> This is part of an overall effort to improve PHP's cryptography; up >> next will be the pluggable crypto API that supports multiple backends >> (with a scope limited to openssl and libsodium at the time of release) >> but always provide conservative defaults. Then I'd like to look at >> deprecating ext/mcrypt back to PECL and add more hash functions to >> ext/hash. > > > +1. Only comment is on namespace: how about \Php\Ext\Sodium? I don't know > if namespacing PHP engine components has been standardized, but I feel we > should limit how often the engine consumes names in the global namespace. > E.g, I could see a user wanting "Sodium" for an app name, but couldn't use > it simultaneously with the libsodium extension. Originally it was Sodium::function_name, but people complained. I don't personally have a stake in this course of discussion. I'm fine with almost anything, but the PECL extension, which has a "stable" release, uses \Sodium\* already. Scott Arciszewski Chief Development Officer Paragon Initiative Enterprises