- What is the best approach to let two users agree on a prime number p
and a base g? Say two hosts on the Internet are attempting to agree on
a secret key. Is it common practice that one of the hosts just
generates the two values randomly and lets the other host know, or are
more sophisticated mechanisms usually employed?
Usually the domain parameters p and g can be hard coded into your software,
or is given in some protocol standard.
- What is the correct way to extract the prime number and base from the
DH class? The following post make use of the
AccessGroupParameters().GetValue("Modulus", ...) method in the DH
class:
http://groups.google.com/group/cryptopp-users/browse_thread/thread/ac43a200a58ff277/2d79994f12811a13?lnk=st&q=DH+diffie+cryptopp&rnum=6#2d79994f12811a13
You can call GetGroupParameters().GetModulus() and
GetGroupParameters().GetSubgroupGenerator().
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Crypto++
Users" group.
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cryptopp-users?hl=en
-~----------~----~----~----~------~----~------~--~---