Re: [RFC] OpenSSL BigNum support
| From: | Sara Golemon | Date: | Tue, 18 Oct 2016 06:44:41 +0000 |
| Subject: | Re: [RFC] OpenSSL BigNum support | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-96408@lists.php.net to get a copy of this message | ||
On Mon, Oct 17, 2016 at 11:41 PM, Sebastian Bergmann <sebastian@php.net> wrote:
> Am 18.10.2016 um 08:23 schrieb Sara Golemon:
>> I'm mostly curious about thoughts on API decisions.
>
> * public static function createFromBinary(string $number): BigNum;
> * public static function createFromInteger(int $number): BigNum;
> * public static function createFromString(string $number): BigNum;
>
I did consider that (though with a required base parameter for
createFromString() (which, due to OpenSSL's API would be constrained
to 10 or 16).
-Sara