Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96453 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80596 invoked from network); 18 Oct 2016 23:48:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Oct 2016 23:48:27 -0000 Authentication-Results: pb1.pair.com smtp.mail=daniel@honestempire.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=daniel@honestempire.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain honestempire.com designates 66.111.4.25 as permitted sender) X-PHP-List-Original-Sender: daniel@honestempire.com X-Host-Fingerprint: 66.111.4.25 out1-smtp.messagingengine.com Received: from [66.111.4.25] ([66.111.4.25:58847] helo=out1-smtp.messagingengine.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A4/50-12428-AC4B6085 for ; Tue, 18 Oct 2016 19:48:26 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 92F42206D3 for ; Tue, 18 Oct 2016 19:48:23 -0400 (EDT) Received: from web1 ([10.202.2.211]) by compute4.internal (MEProxy); Tue, 18 Oct 2016 19:48:23 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=honestempire.com; h=content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=q+npgU7M+qLd6vNhR9X7j2vyuUQ=; b=Fo9qia V8n3kMi1Ub0OJmc2dntd9eeTS3YQu5KdcXbTYIqjNM/wnuzHGJ1QDmno9q6+y7/V U1c1hx5xkNXBYdS5zJZAfh5hgmXi+hAS9el7PweHJcaAErBHr+HdeIE+cuPDKefS 648ohsPCMvBHC+yC5cQ5QUkVfeDUqwwvToQfk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=q+npgU7M+qLd6vN hR9X7j2vyuUQ=; b=Lbe4S2JuJybctR/uXv/ZAh47zEVNISo2W+eJLSErBWwTgIB R3PlZt32Rap80zmAnAVW1mizGFi2ofKjvKfmP9P+hO2HaTSIMeEs9YVrARmNbMG3 Q1d0DXgCkwPJ324HANbrzhaFKdyGjXvF3/IC1tQl4+ZPv19IGWhcjq8LtZ6U= Received: by mailuser.nyi.internal (Postfix, from userid 99) id 591679E6DD; Tue, 18 Oct 2016 19:48:23 -0400 (EDT) Message-ID: <1476834503.1248593.760253489.1D748624@webmail.messagingengine.com> X-Sasl-Enc: ozsn8W4TPIO0yrDdr8P71gPhC42ygqUnWHZ/Q+E/QapC 1476834503 To: internals@lists.php.net MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-2518523d Date: Wed, 19 Oct 2016 00:48:23 +0100 In-Reply-To: References: Subject: Re: [PHP-DEV] [RFC] OpenSSL BigNum support From: daniel@honestempire.com (Daniel Morris) On Tue, 18 Oct 2016, at 09:22 AM, Nikita Popov wrote: > On Tue, Oct 18, 2016 at 3:35 AM, Sara Golemon wrote: >=20 > > As it says on the tin: Wrap the BN (BigNumber) library in OpenSSL. Why do we need GMP when we have BCMath? GMP is faster (from what I've seen so far from various tests and blog posts) =E2=80=93 whilst they do sim= ilar ops, they are chosen for specific reasons, all this does is expose the existing interfaces for arbitrary precision arithmetic made available with the OpenSSL layer, and I think anyone implementing them would want the API there, it requires minimal maintenance. Sara, I think the best route is too match the method names within OpenSSL, it will avoid some initial confusion, unless people want to change libraries, but I think that is probably less likely. DM