Better don't. If I remember correctly it pretty much breaks the security of El Gamal if you use the same key pair for encryption and signing.
David Xanatos wrote: > Hi, > > I would like to use Elgamal for PK encryption and signatures, > how to encrypt i think i can get out ValidateElGamal() > and how to sign out of ValidateNR() or ValidateDSA() > but booth this "samples" are using already created keys > > So my question is: how do i create a new Elgamal key pair? > > Generaly I would really appreciate if there would be some samples out > there which shows exactly how to use each of this great algorithms of > cryptopp. > > Sincerely > Davie Xanatos > > -- 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.
