Reputation: 5512
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!
Upvotes: 4
Views: 6092
Reputation: 41958
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.
Upvotes: 3