Hello Arno, I use RSA to transmit a session key. OpenStreamSec does look promising. It's got lots of stuff in it. I'll take a look. Thanks for the recommendation. I'll also research on Windows CrytoAPI.
Actually I have found 3 or 4 RSA cipher packages that include RSA but none of them talks to OpenSSL's RSA implementation. I thought this was standard-based and should be easy but it's not. The problems include not able to export to or import from OpenSSL's key format, not using the a compatible padding scheme, and other unknown reasons. I also plan to use RC4 stream cypher to encrypt the data once key exchange is done. I have found a few RC4 implementations for Delphi but a few ones I tried do not work properly. They encrypt blocks right but don't encrypt stream correctly. For example, if you encrypt "aaa" and "bbb" you should get the same result as encrypting "aaabbb" because it's a stream cipher and packaging of data should not matter, as long as order is correct. But the packages I tried gave different result. (I modified the subject as I'm also looking for RC4 implementations now :) -- Best regards, Jack Friday, February 10, 2006, 4:19:58 AM, you wrote: > Jack wrote: >> I need to use public key encryption between a client written in >> Delphi and a server written in C/C++ on Linux. RSA becomes the >> natural choice. > Not sure what you want to achieve. RSA is slow thus mostly used > just to encrypt a random key for symmetric encryption. Beside > Openssl you should take a look at the Windows crypto API, there's > a header translation available at the Jedi site. > Another solution might be Open StreamSec > http://sourceforge.net/projects/openstrsecii/ > I have not yet tested it, but looks promising. _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

