Steve Hartt wrote:
>
> I know this has been discussed, but I still am having no luck figuring out
> my problem.
> In the following code, encryption works fine, but decryption sometimes
> doesn't work.
> I have to use RSA_NO_PADDING for this application. I am using a 512 bit key
> length.
> any ideas?
>
The value encrypted for RSA_NO_PADDING must be less than the modulus, if
its larger the decrypted data wont match.
Steve.
--
Dr Stephen N. Henson. http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED]
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]