Re: Re: RFC - Two more Math packages: Math_Integer and Math_Fibonacci

From: Date: Thu, 02 Jan 2003 23:59:40 +0000
Subject: Re: Re: RFC - Two more Math packages: Math_Integer and Math_Fibonacci
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-12049@lists.php.net to get a copy of this message
Hi Christian, --- Christian Dickmann <chrisdicki@gmx.de> wrote: > > > BTW: I will have a look at the Math_Integer class. Maybe I will use it > > instead of ext/gmp directly in my new Crypt_RSA class. > > I had a look, and it seems, that its not possible to use Math_Integer in > Crypt_RSA without adding a few more methods. I don't know, if > bcmath supports them, but here they are: > gmp_random(), gmp_prob_prime(), gmp_powm(). > The mentioned Math_Bigint will support these methods. It should not be a problem to add an equivalent to gmp_powm() using bcpow() and bcmod(). The gmp_random() and gmp_prob_prime() equivalents will require implementation. Had not look into the Math_BigInt in detail yet, but it will be OK to merge code. Will email you personally later on, after I've looked at what you've implemented. ===== --- Jesus M. Castagnetto (jcastagnetto@yahoo.com) Research: http://metallo.scripps.edu/ Personal: http://www.castagnetto.org/ __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com

« previous php.pear.dev (#12049) next »