Re: OpenID enabling patch for OpenSSL and PHP 5

From: Date: Sat, 10 Mar 2007 03:13:37 +0000
Subject: Re: OpenID enabling patch for OpenSSL and PHP 5
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-28316@lists.php.net to get a copy of this message
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.

« previous php.internals (#28316) next »