Re: RSA_public_encrypt() problems.

2001-01-04 Thread Jason A. Aras
Dr S N Henson wrote: > "Jason A. Aras" wrote: > >> 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. >> > > What makes you think it fails?

Re: RSA_public_encrypt() problems.

2001-01-04 Thread Dr S N Henson
"Jason A. Aras" wrote: > > 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. > What makes you think it fails? > When it fails it returns the leng

RSA_public_encrypt() problems.

2001-01-04 Thread Jason A. Aras
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