| > Has anyone implemented (or can point out) exponentiation on the Integer
class...
|
| Integer z = EuclideanDomainOf<Integer>().Exponentiate(x, y);
|
| Note that Crypto++ will use up all of your memory if you specify large
| enough x and y. What are you using this for? I'm curious.

Hi Wei,

| What are you using this for?
Nothing special.

I'm working on a little program that simply allows the operation (and using
Java as a yard stick). I don't have my Java docs with me at this time, but I
think Java only allows the exponent to be an integer. I will look at your
suggstion in the morning, but I think the exponent in your library can be an
Integer (re: memory consumption). Otherwise, you probably would not have
warned the group.

Also, interesting: Java allows a negative exponent on ModPow (a_exp_b_mod_c
in Crypto++ from number theory), but Crypto++ does not like the constuct.

Jeff

Reply via email to