Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28316 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92921 invoked by uid 1010); 10 Mar 2007 03:13:47 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 92906 invoked from network); 10 Mar 2007 03:13:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Mar 2007 03:13:47 -0000 Authentication-Results: pb1.pair.com header.from=pollita@php.net; sender-id=unknown; domainkeys=good Authentication-Results: pb1.pair.com smtp.mail=pollita@php.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain php.net from 140.211.166.39 cause and error) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pollita@php.net X-Host-Fingerprint: 140.211.166.39 osu1.php.net Linux 2.4/2.6 Received: from [140.211.166.39] ([140.211.166.39:57650] helo=osu1.php.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DE/95-00491-A6222F54 for ; Fri, 09 Mar 2007 22:13:46 -0500 X-DomainKeys: Ecelerity dk_sign implementing draft-delany-domainkeys-base-01 DomainKey-Signature: q=dns; a=rsa-sha1; c=nofws; s=mx; d=php.net; h=From:Subject:To:Date; b=Ukl9Nn5ApQWwwr14B5OPbhnQTTqM2KQEkXLvOdZWyUVM0wjr+ny/QHlgyVlnhLPY 6C/fBTX3rIXQkRTfNiMc69i1T8VI9QONGHtaqMdmD1RDzyivi+LAHacl992GYK5w Authentication-Results: osu1.php.net smtp.user=pollita; auth=pass (LOGIN) X-Host-Fingerprint: 67.180.238.228 unknown Received: from [67.180.238.228] ([67.180.238.228:1231] helo=[192.168.1.101]) by osu1.php.net (ecelerity 2.1.1.11-rc1 r(13363/13364M)) with ESMTPSA (cipher=AES256-SHA) id B8/99-02342-33322F54 for ; Fri, 09 Mar 2007 19:17:08 -0800 Message-ID: <45F22261.2000500@php.net> Date: Fri, 09 Mar 2007 19:13:37 -0800 User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Stanislav Malyshev CC: Andi Gutmans , Wez Furlong , internals@lists.php.net References: <700A466F-7822-4371-AD6A-36F6880E6368@omniti.com> <698DE66518E7CA45812BD18E807866CE12B468@us-ex1.zend.net> <45F1B956.4060003@zend.com> In-Reply-To: <45F1B956.4060003@zend.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] OpenID enabling patch for OpenSSL and PHP 5 From: pollita@php.net (Sara Golemon) >> Doesn't seem like this ever got commited. >> Can we include this in PHP 5.2.2? It doesn't break existing APIs so I >> think it's a good idea. > > I think adding bignum functions is OK (though it duplicates GMP to a > measure) - while we are at it, why not add implementation for > btwoc(number) also? > I'd suggest making big_int (in PECL) into a bundled extension. I know the original author hasn't touched it since 2005, but I've been using the underlying library in a few applications and would be willing to take over maintenance on it (Alexander Valyalkin released it into the public domain -- So bundling it is not an issue). I'd also like to expand it with things like DSA/RSA implementations and some additional number theory applications like euclidean inversion and the like. I know that bc would be a reasonable candidate for this kind of exploitation, but the fact is that bc was designed with base10 in mind and isn't particularly performant when comparsed against gmp/openssl/big_int. Of those three, big_int is the only one with the clean licensing (and ultra-small footprint) to make bundling it feasible. -Sara P.S. - Not that there's anything wrong with the OpenSSL implementation Wez did... Just tossing out my thoughts on the long-term direction to take with big number libraries.