Re: 050 + at the beginning of verified signature

2013-10-10 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org on behalf of aqueelmirza > Sent: Thursday, October 10, 2013 06:43 > I tried replacing strlen(reply) with 20 but we are getting same result as > before. > Yes, a sha1 hash should be 20 bytes, but see below. > I am attaching reference files with this messag

Re: 050 + at the beginning of verified signature

2013-10-10 Thread aqueelmirza
Hi I tried replacing strlen(reply) with 20 but we are getting same result as before. I am attaching reference files with this message. While trying this solution, sometimes we were getting following error as well. RSA operation error 140735121490396:error:0406706C:rsa routines:RSA_EAY_PUBLIC_DEC

Re: 050 + at the beginning of verified signature

2013-10-09 Thread aqueelmirza
Hi Ken thanks for replying. I have been struggling with this issue since last 3 days. I am not using RSA_verify. I am using openssl -verify to verify my signature. Secondly, should I write 20 instead of strlen(reply)? Best Regards -- View this message in context: http://openssl.6102.n7.nabble

Re: 050 + at the beginning of verified signature

2013-10-09 Thread Ken Goldman
There are a few issues here: RSA_Verify does not return a signature. It returns a boolean pass/fail. If reply is a hash, strlen(reply) is not the length of the hash. The length is 20 for SHA-1. On 10/9/2013 1:46 PM, aqueelmirza wrote: I am using OpenSSL in iOS app to sign a message. I use