Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82117 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14265 invoked from network); 8 Feb 2015 05:48:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Feb 2015 05:48:46 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.174 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.216.174 mail-qc0-f174.google.com Received: from [209.85.216.174] ([209.85.216.174:35844] helo=mail-qc0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4A/F6-07765-BB8F6D45 for ; Sun, 08 Feb 2015 00:48:44 -0500 Received: by mail-qc0-f174.google.com with SMTP id s11so18187784qcv.5 for ; Sat, 07 Feb 2015 21:48:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=A7pSKFy57Yh6W0LwPkdA1q9Xm4S9YAHkVI4v/OsgzZs=; b=GOxiAadfYZRnUkUzwX+6HxDZT4q6913uDZlh1hjqqx6AUmZQDbCZwfHJQZA1DlZrAP +dxvplb8PSqY5uHBW2flcGCmZVtVyA3fYXOO5m9C0fX1ejmXHPgaew0AHDKxRnH5xBV4 8+iFV5oZYc+EzBNkChsaSdm2tlP0jtIXFqXgfELFJo8IjC9tVnM+3UzImk3qVDtBJi4I onRwaQyCeA2ytTYhRhHZ8IgW4w/96EjkHB91B0lcclozdh9ub9ZwO8QwwokKpLwbdtb/ RtCVUlCkjuWJW1jH+8T1RJiHZfjhYOyBjHbD/tu2DvLMcf/GSRz96Sq0IzepdPjt7xYi uWMQ== X-Received: by 10.140.97.203 with SMTP id m69mr25997268qge.39.1423374520075; Sat, 07 Feb 2015 21:48:40 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.229.28.72 with HTTP; Sat, 7 Feb 2015 21:47:59 -0800 (PST) In-Reply-To: References: Date: Sun, 8 Feb 2015 14:47:59 +0900 X-Google-Sender-Auth: V6KeKCf5Xgd6S8wxkaR5IJfQVu8 Message-ID: To: Tom Worster , Pierre Joye Cc: php-internals Content-Type: multipart/alternative; boundary=001a113a2aa2a6cc2b050e8d346f Subject: Re: [PHP-DEV] Security changes in PHP 7 From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a113a2aa2a6cc2b050e8d346f Content-Type: text/plain; charset=UTF-8 Hi Tom, On Sun, Feb 8, 2015 at 4:24 AM, Tom Worster wrote: > 1. Will there be a portable API for getting random bytes from the > platform's CSPRNG? > > https://wiki.php.net/ideas/php6 lists as an addition: "Reliable, > userfriendly RNG APIs: Provide a userfriendly and reliable RNG APIs, > available by default, on all supported platforms and for all usages > (from weak to crypto safe)." > Pierre, What the status? > 2. What's going to happen to mcrypt? > > I see the vote to excise it did not pass. Does this mean that (i.e. > imply that) PHP's plan is to keep a security lib that hasn't been > maintained for 8 years for the next 5+ years? > Removed. Available as PECL module. Probably. > > > 3. Will the OpenSSL ext remain as it currently stands? > > There have been a few discussions about this but I'm not clear if any > decisions have been made about changing it or providing a new API. > Not sure on this > > > 4. What does openssl_random_pseudo_bytes() really do in PHP? > > Where does it get random bytes from in the various different platforms? > Is it going to change in PHP 7? > It's depend on openssl. What openssl does is what it does. > > > 5. Is the weird Linux /dev/random[1] still supported? If so, is used > by default in any PHP API? > Session module use it. /dev/urandom or /dev/arundom > > > 6. I noticed some work on constant-time functions. Is this for security > purposes, i.e. defeating remote timing attacks? Is there an RFC? > > > No, but there is patch. Status? Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a113a2aa2a6cc2b050e8d346f--