I don't think you need to explicitly set the private exponent length. The two sides of a DH agreement protocol do not need to use the same sizes for private exponents. They just need to use the same modulus and base, which you specify in Crypto++ like this:
Integer modulus, base; // ... DH dh(modulus, base); BTW, it looks like that Java code is using a 256-bit DH modulus, which provides almost no security at all. Is that intentional? -------------------------------------------------- From: "user923005" <[EMAIL PROTECTED]> Sent: Monday, December 31, 2007 3:42 PM To: "Crypto++ Users" <[EMAIL PROTECTED]> Subject: Re: Diffie-Hellman key agreement question > > On Dec 31, 3:34 pm, user923005 <[EMAIL PROTECTED]> wrote: >> I want to set the exponent to 255. How do I do that? > > For a more exact description of what I am after, I want to connect to > a DRDA stream using a secure connection (which uses diffie-hellman key > exchange in a rather odd way). Here is a Java link that implements > that sort of connection: > http://www.docjar.net/html/api/org/apache/derby/impl/drda/DecryptionManager.java.html > > My reference to the size 255 is found on line 84 of that file. > > > > --~--~---------~--~----~------------~-------~--~----~ 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. -~----------~----~----~----~------~----~------~--~---
