Hello,

I am trying to implement a signing function in C++ using RSA.
Here's how I wanted to do this:
  - First I calculate the SHA1 hash (not using openssl but another 
implementation).
  - But then what? Should I use RSA_private_encrypt or rsa_sign? When I use 
RSA_private_encrypt the result is different from when I use rsa_sign... The 
openssl support pages mention that in case of RSA_PKCS1_PADDING (that's the one 
I use) I should use rsa_sign. Is there any way around this?

I thought that signing was a two step process: hash + RSA encryption of hash. 
Am I doing something wrong?

Thanks.

Regards,
Bob D.



This e-mail and any attachments contain material that is confidential for the 
sole use of the intended recipient. Any review, reliance or distribution by 
others or forwarding without express permission is strictly prohibited. If you 
are not the intended recipient, please contact the sender and delete all copies.

Reply via email to