I am using OpenSSL in iOS app to sign a message. I use RSA_sign to sign. When
I use RSA_verify to verify the signature, result is like this

050 +(f2d7846a5f495a743e470663facf7a2858d052cf

Where f2d7846a5f495a743e470663facf7a2858d052cf is the original signature. So
I am getting additional 050 +( at the beginning of the signature. Can anyone
please tell me the reason of this?

This is how I am signing

int sign = RSA_sign(NID_sha1,( char *)reply, strlen(reply), signature,
&siglen, myRSA );

where reply contains sha1 hashed data to be signed.

Best Regards



--
View this message in context: 
http://openssl.6102.n7.nabble.com/050-at-the-beginning-of-verified-signature-tp46825.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to