views:

207

answers:

1

Hi,

I need to generate a digital signature from C++ code, using OpenSSL libraries. I understood that I need for that DSA \ DSA_do_sign, but didn't understand how exactly to use it.

Does someone have an example for that, or a reference for better than OpenSSL's supplied docs?

Thanks in advance!

+2  A: 

You seem to have RSA and DSA confused. However, if you want to sign using RSA-sha256, then use the EVP interface for signing. You can initialize with the EVP_SignInit_ex() method with EVP_sha256() for the type argument.

GregS
Thank you very much!
rursw1