> 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
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
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
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