Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96571 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6886 invoked from network); 24 Oct 2016 05:09:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Oct 2016 05:09:28 -0000 Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.161.175 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.161.175 mail-yw0-f175.google.com Received: from [209.85.161.175] ([209.85.161.175:36435] helo=mail-yw0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FD/65-28528-5879D085 for ; Mon, 24 Oct 2016 01:09:26 -0400 Received: by mail-yw0-f175.google.com with SMTP id u124so168900503ywg.3 for ; Sun, 23 Oct 2016 22:09:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=golemon-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=Eaxd9ovxDq5WmYXxZN9bShIJ3DC7ar5YpVjnazqFTFk=; b=W5ZMvpku8HBJtZTaygNolI7CdgYBBfF52hoXP0nlNKOwTRHaL/nTJP9ldWwyhOF25z /kQbT/PrCHYF8TTmUNDo4U70T8OBONFIlLQqVZH0yDi3cuSnsBWNZlwdR3PDeErHhQSU Pcme+I7AD6ylXBx5NPa1GL/y5XJJpi6SbylnTrHkUE1acJ9Qjtjhylyn81esKNsgM65f io9mNRtupZeetz8pDqChM7f/JP8QKlLz5ZuywzhsTP2HtfW9CfVNn9nGZRsDtsFvb5pr UF6TquJdy4KeBhjGXBXnSP8gFFmmCebnzJTIlMOfPOvq1TRAvcJgT26iXe+u3et4Nb1c 21ww== 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:cc; bh=Eaxd9ovxDq5WmYXxZN9bShIJ3DC7ar5YpVjnazqFTFk=; b=k4QUb+Vvu0rYC4EUh1splzIztpyaeMQU2II1TbMM7kJOeTOdVxm9Z2ETpAHrTa6tJz G5XAY/LnsTBKFMUwqn/dSKix0TJUYN0L/7gQ0caV4/Cw9Jd6D3zFLl2td7FrQ6s6H0Ma 5BV9Snyr3MsTGB59x1z823oWTCUTbfUQOw9dkML7e8tQ5eRtu8v16APOifUYkp5Z1F2G MbnBiZ/L8sDqTs/2QUdtXwGzKf3USdq3GKcTxGFlkjdHZ0wKW7WK3MyUUHBNIAHspgms ruutk4ONqxH7fTmnUzHU1yY9Mp/DPfj2Nu4hab4fQYwF/rQEcfX6H7lUqZifaNSabw+y wOAw== X-Gm-Message-State: ABUngveFeY68YaH9+h9HN/LXB59O9uV4H2jbjD95VP6EkaoCMSefc8N3bLx+L23PoG4nwgoX1zI/U5UtT0djpQ== X-Received: by 10.107.36.144 with SMTP id k138mr10642324iok.201.1477285762456; Sun, 23 Oct 2016 22:09:22 -0700 (PDT) MIME-Version: 1.0 Sender: php@golemon.com Received: by 10.36.11.2 with HTTP; Sun, 23 Oct 2016 22:09:21 -0700 (PDT) X-Originating-IP: [107.198.91.68] In-Reply-To: References: <1476834503.1248593.760253489.1D748624@webmail.messagingengine.com> Date: Sun, 23 Oct 2016 22:09:21 -0700 X-Google-Sender-Auth: cj_SmLHEnbK2YMY9QarBapATXoo Message-ID: To: Stanislav Malyshev Cc: Nikita Popov , Daniel Morris , PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] OpenSSL BigNum support From: pollita@php.net (Sara Golemon) On Sun, Oct 23, 2016 at 5:06 PM, Stanislav Malyshev wrote: >> What are the specific reasons for choosing OpenSSL Bignums over GMP, >> outside of extension availability (which is totally a path I don't want us >> to go down -- see also recent attempts to duplicate ext/mbstring into >> ext/standard)? Are there any particular properties of the openssl >> implementation that are beneficial for certain applications? > > I'd say having it for free when you have OpenSSL is a factor. If it were > separate extension, I'd say the right route is to just make PECL ext as > usual, but since this kind of has the natural place in openssl, it may > be a bit different. > > I do see a point though that somehow integrating with the rest of > OpenSSL would be a good thing then. After all, if you have code that > does some interesting stuff with data but you can't use openssl pkey > functions to input/output the results, it turns into reimplementing the > whole crypto system and that's usually not a good idea. > Is the feedback then that we should expose /more/ of the OpenSSL API? I'm happy to expand this to encompass more of the crypto library functions. -Sara