Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I need to generate DSA 512 bit KeyPair(Public and Private Keys).

Can any one suggest me, how to generate it.

Thanks in advance.
Posted

There are two open source libraries that claim to be able to generate DSA key pairs but using them is not for novices.

One is Beecrypt:

http://beecrypt.sourceforge.net/doxygen/c++/index.html[^]

The other is Crypto++:

http://www.cryptopp.com/[^]

This has many tutorials on the net including here on CP:

Compiling and Integrating Crypto++ into the Microsoft Visual C++ Environment[^]

If you utilize the .net framework then it is much easier:

http://msdn.microsoft.com/en-us/library/vstudio/be60ks99(v=vs.100).aspx[^]
 
Share this answer
 
v4
Comments
IICTECH 17-Oct-13 4:34am    
I have already tried crypto++ and I'm able to generate 512 bit DSA keypair, but the length of privatekey x parameter is varies and also the values of PQG group parameters should be constant.

When coming to beecrypt, I'm unable to install it in windows7 platform.

Please, suggest me a way to overcome these problems.

Thanks for your reply.
[no name] 17-Oct-13 4:40am    
Perhaps try here as you are already some way down the path.

https://groups.google.com/forum/#!forum/cryptopp-users
IICTECH 17-Oct-13 7:06am    
I have gone through the forum what you have suggested.
But, I didn't find any solution regarding my question.

If you have any other solution, Please suggest me.

Thanks for your reply.
 
Share this answer
 
Comments
IICTECH 17-Oct-13 2:31am    
Thanks for your quick responce.

How to get the library to use this code in VC++ 2010

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900