Geoff Beier wrote: > On Dec 5, 2007 5:22 PM, Robert Roessler <[EMAIL PROTECTED]> wrote: >> eric.frederich wrote: >>> I'm trying to get an example working. >>> I copied the GenerateRSAKey function from test.cpp and put it in my >>> own file with a main. >>> It keeps generating the same exact public key. >>> I tried changing the const char *seed and even changed the RandomPool >>> to an AutoSeededRandomPool but still no luck. >>> >>> Any help is appreciated. >> Without checking the code (or docs), I can mention that it is common to >> use one of a few widely known default values for the PUBLIC key (e.g., >> 3, 17 [I think], or 65537). >> >> Besides being able to refer to these as "default public key #2" (or some >> such), they also share the property of allowing a relatively quick >> attempted [in]validation. >> > > That's not accurate. Those are common values for the public exponent. > The other component of the public key is the modulus. That's always > distinct for a new keypair. For a nice clear explanation, look at ...
Well, I had assumed that the *exponent* was what he was actually talking about when he mentioned the "same public key" part - and so my answer was tailored accordingly. I was also going to come back and add the discussion of the *modulus* - but I see that you have that covered - thanks! ;) Robert Roessler [EMAIL PROTECTED] http://www.rftp.com --~--~---------~--~----~------------~-------~--~----~ 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. -~----------~----~----~----~------~----~------~--~---
