I am working on a quick C hack to test out the use of the RSA encryption
functions. When i make a call to RSA_public_encrypt() it sometimes
fails (but does not return a -1) and sometimes works.
When it fails it returns the length of a string, but a strlen() on the
'to' variable is not equal to what RSA_public_encrypt() returns. I do
not know what the problem is, other than a memory problem. I first
thought the problem was in calling RSA_private_decrypt(); because it was
returning a packing error, but it turned out that the crypted data was
corrupt some how.
I am using RSA_PKCS1_PADDING and have tried variable length keys and I
still have this problem. The code compiles and 'runs' on Linux i386
and SPARC.
If anyone has any thoughts or pointers on fixing this or troubleshooting
the problem, I would appreciate the help.
Jason Aras
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]