> 1. I use the following snippet based on crypto++ wiki to build DH > object. Can you confirm if this snipet is correct, or correct it > otherwise? I noticed the PrivakeKey generated by this object starts > with many zeros. Please clarify if this is OK.
Your code looks fine. You should run dh.GetCryptoParameters().Validate(GlobalRNG(), 3) on the dh object (and check the return result) to make sure everything is ok. The private key starts with many zeros for efficiency. The random part is long enough to prevent attacks. > 2. What does the dh1024.dat contain? Is that a Private Key? It's a 1024-bit DH group for testing. I either generated it myself, or got it from somewhere. --~--~---------~--~----~------------~-------~--~----~ 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. -~----------~----~----~----~------~----~------~--~---
