|
-
May 21st, 2012, 05:32 PM
#1
mpz_invert() limit?
I have been writing a program to generate pairs of RSA keys using small prime numbers. I have been using mpz_invert() to get a value for d for the private key. On small prime numbers it calculates the correct value, but on larger primes it calculates incorrect values.
I'm assuming there must be an upper limit to the values the mpz_invert() function can handle? If so, what is this limit to avoid erroneous values?
Thank You 
-Sam
-
May 22nd, 2012, 09:45 AM
#2
Re: mpz_invert() limit?
Hmm, I've started using even bigger numbers and now it's working again.
Mods can delete this thread.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|