Re: [RFC] OpenSSL BigNum support
| From: | Daniel Morris | Date: | Tue, 18 Oct 2016 23:48:23 +0000 |
| Subject: | Re: [RFC] OpenSSL BigNum support | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-96453@lists.php.net to get a copy of this message | ||
On Tue, 18 Oct 2016, at 09:22 AM, Nikita Popov wrote:
> On Tue, Oct 18, 2016 at 3:35 AM, Sara Golemon <pollita@php.net> wrote:
>
> > 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) – whilst they do similar
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