Do:

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.

On Sun, Feb 23, 2003 at 03:30:37AM -0500, Jeffrey Walton wrote:
> Hi Group,
> 
> Has anyone implemented (or can point out) exponentiation on the Integer class? I 
> have not found it in the library. It does not seem to be a part of Integer or Number 
> Theory. I did find it over a finite field, but that does not help me...
> 
> Thanks,
> Jeff

Reply via email to