It sounds like a padding issue. Which padding mode are you specifying, what is the key length, and what is the length of the plaintext? To be clear, the encrypt succeeds all of the time, but the decrypt fails half of the time?
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Rutherford Sent: Tuesday, 20 September 2005 2:53 AM To: openssl-users@openssl.org Subject: rsa_publiic_encrypt problem Hi All, I have a strange problem with RSA_Public_Encrypt. Basically it only produces decipherable information about 50% of the time, but with the same clear text string. i.e. I have an RSA encrypt decrypt benchmark program using a static clear text char string. sometimes it works, but other times it produces a padding error when I decrypt, but using the same clear text. Is this some kind of seeding problem? How else could it work about 50% of the time with the same clear text? Thanks Chris R ______________________________________________________________________ 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]