It was stup0id programmer tricks. I thought I had the signature properly
decoded. Once I got that ironed out, all my problems went away. :)


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marek Marcola
Sent: Tuesday, October 16, 2007 3:48 PM
To: openssl-users@openssl.org
Subject: RE: openssl.exe question

Hello,
> I ran this command line:
> 
>  
> 
> openssl rsautl -verify -in "mysignaturefile.sig" -pubin -inkey
> "public.key" -asn1parse
> 
>  
> 
> ...and got this:
> 
>  
> 
> Loading 'screen' into random state - done
> 
> RSA operation error
> 
> 5924:error:0406706C:rsa routines:RSA_EAY_PUBLIC_DECRYPT:data greater
> than mod len:.\crypto\rsa\rsa_eay.c:660:
> 
>  
> 
> If the php internal openssl code verifies this signature, and the
> external openssl.exe binary generates thie listing above, does this
> indicate a but in openssl.exe?
Check mysignaturefile.sig file size. For 1024 bit RSA key this file
should have 128 byte size (for 2048 - 256 bytes). 
Maybe some CRLF conversion occurred (this is binary file).

Best regards,
-- 
Marek Marcola <[EMAIL PROTECTED]>

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to