How to initialize DH group parameters?

View: New views
1 Messages — Rating Filter:   Alert me  

How to initialize DH group parameters?

by ricos-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


The following code is a part of my code.
....
AutoSeededRandomPool arngA;
RandomNumberGenerator& rngA = *dynamic_cast<RandomNumberGenerator *>
(&arngA);
DH dhA(rngA, 512);
Integer iPrime = dhA.GetGroupParameters().GetModulus();
Integer iGenerator = dhA.GetGroupParameters().GetSubgroupGenerator();
....

From this code, I get iPrime of 64byte and iGenerator of 1byte.
But I need iGenerator of 64byte.

How to do it so?
Please help me.

Rigards,
Ricos.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscribe@....
More information about Crypto++ and this group is available at http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---