RE: signature length mismatch ERROR in RSA_Verify.

2008-11-19 Thread David Schwartz
> RSA_verify(NID_md5, datatosign, (strlen(datatosign)), signature, > strlen(signature), key); The 'strlen' function is only useable on a C-style string. The signature cannot be a C-style string because it is arbitrary binary data. > Best regards, > Am. Sivaramakrishnan DS __

Re: signature length mismatch ERROR in RSA_Verify.

2008-11-19 Thread Sivaramakrishnan Ananthakrishnan
RC <[EMAIL PROTECTED]> wrote: > From: Raja RC <[EMAIL PROTECTED]> > Subject: signature length mismatch ERROR in RSA_Verify. > To: openssl-users@openssl.org > Date: Thursday, November 13, 2008, 5:11 AM > Hi, > I see the following error while trying to verify the > signat

signature length mismatch ERROR in RSA_Verify.

2008-11-13 Thread Raja RC
Hi, I see the following error while trying to verify the signature using public key (generated in cygwin) and verification is done at embedded system with openssl libraries. error:04077077:rsa routines:RSA_verify:wrong signature length The details about what I'm trying to do is as follows: * Pr