Hi Cyptmon, > I get the private exponent as 1024 bits, the public > exponent is the smaller one and it is 17 always. You are interpreting incorrectly: 1024 is the size of the modulous. 17 is the Public Exponent.
See the dump keys example at http://www.cryptopp.com/wiki/RSA > PS: I hope GenerateRandomWithKeySize One possible way to generate keys... Jeff On 10/11/07, Cyptmon <[EMAIL PROTECTED]> wrote: > > Thanks for the replies, I am sorry I made a mistake, I get the private > exponent as 1024 bits, the public exponent is the smaller one and it > is 17 always. Why is it always 17 irrespective of the key size that I > specify? > > Isnt the public key chosen as something that is relatively prime to > Totient function of n (Phi (n ) where n is p * q) > > Thanks > > PS: I hope GenerateRandomWithKeySize is the right function to use to > generate different sized keys for RSA as directed by the second > argument passed to it > > [ SNIP ] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to [EMAIL PROTECTED] More information about Crypto++ and this group is available at http://www.cryptopp.com. -~----------~----~----~----~------~----~------~--~---
