How to create RSA-SHA256 digital signature with OpenSSL libraries?

I need to create a digital signature from C ++ code using the OpenSSL libraries. I realized that I needed this DSA \ DSA_do_sign, but I did not understand how to use it.

Does anyone have an example for this, or is the link better than the provided OpenSSL docs?

Thanks in advance!

+4
source share
1 answer

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

+3
source

Source: https://habr.com/ru/post/1311536/


All Articles