Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96568 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93074 invoked from network); 24 Oct 2016 00:06:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Oct 2016 00:06:46 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.177 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.177 mail-pf0-f177.google.com Received: from [209.85.192.177] ([209.85.192.177:34287] helo=mail-pf0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 83/04-28528-4905D085 for ; Sun, 23 Oct 2016 20:06:46 -0400 Received: by mail-pf0-f177.google.com with SMTP id r16so87253391pfg.1 for ; Sun, 23 Oct 2016 17:06:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=Be/HY1kKfip9/2D55Qjcm2PfOxdezUuMNRzYqcIqOj0=; b=Pz3yVOe9tHQupd+GhugxJ8IGHH7JU41Uw8r+DhaTOnXelJN/3ejL8xP90/Gj9VUzkR Lc5j/9iS510Op+QQv5u8kHFE6sIePWN+DkeawhbV9h1OfJoF0+QCBO9lqu1nSCuFOLYK rEFZQRygtWPLc6hWF5x+FvEBzS+XVYrlmaayj7pHw20WJCltJNzlvaCORaJVmMCznc1w kYOXKvnPXOyea5AGyXYu8dm195W4n5+B1AS8c9M7CZloUakB+Bb6Df63DiOfvaO4/6Mh MmoG07TiZeoStBQvweXTyIMhxkyfZHlbw2Ep3GqGxq4NKoSy09hi+jg6KlLGbZgIwoht fWmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=Be/HY1kKfip9/2D55Qjcm2PfOxdezUuMNRzYqcIqOj0=; b=PYvNva7MuemmVdOKmdmwHDtjala2SoJnwN/n1bTHmip2YwRWlBbiv8oKpU2NPpu47+ sjMJVSCnRYzUsyMFafQ61O8YKcAFIesz3jfXTsbhFEJnop0G6ojUW9aApXxPvULNzVLC z+kR9gtYh/zdD41j7m22EsBr+otqrHpSv8eFQ1z4rRTNMP/MqVqC+U7sAmLnMIfW9eQG UblfGaIBQxla5wHWnXFTJunNyXMeyDJBB6sE4YmMWUigXFsONd8KETgsD5whkrMFVBlp j9bwwhFuyrMXxA2/elc+YLyJ0ER4P6dYFP+Q+U/F0D4YF29xnrRvTgpNjY6pvEHP3D/L zspg== X-Gm-Message-State: ABUngvcfnLb+VosB0uJOepPQ509/AomyaP6IQn8Vu8FqJvz6vJQeiWgTdMbAuBU37s+omA== X-Received: by 10.98.76.7 with SMTP id z7mr23053018pfa.143.1477267601817; Sun, 23 Oct 2016 17:06:41 -0700 (PDT) Received: from Stas-Air.local ([2602:306:ce9c:e680:1890:46a7:9aa1:a4af]) by smtp.gmail.com with ESMTPSA id e6sm4368380pad.0.2016.10.23.17.06.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 Oct 2016 17:06:41 -0700 (PDT) To: Nikita Popov , Daniel Morris References: <1476834503.1248593.760253489.1D748624@webmail.messagingengine.com> Cc: PHP internals Message-ID: Date: Sun, 23 Oct 2016 17:06:39 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] OpenSSL BigNum support From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > 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. -- Stas Malyshev smalyshev@gmail.com