RE: RC4 compatibility problems?

2006-04-14 Thread David Schwartz
Hello folks, I'm trying to use openssl (OpenSSL 0.9.7i 14 Oct 2005) on Mac OS X to encrypt a stream of data using RC4. It seems that the RC4 algorithm used in openssl is incompatible with some other implementations I found, for instance this PHP implementation:

Re: RC4 compatibility problems?

2006-04-14 Thread Victor Duchovni
On Fri, Apr 14, 2006 at 03:23:17PM -0700, David Schwartz wrote: Hello folks, I'm trying to use openssl (OpenSSL 0.9.7i 14 Oct 2005) on Mac OS X to encrypt a stream of data using RC4. It seems that the RC4 algorithm used in openssl is incompatible with some other implementations I

Re: RC4 compatibility problems?

2006-04-14 Thread Bastian Bense
Hi, On 4/15/06, Victor Duchovni [EMAIL PROTECTED] wrote: Also because RC4 is a keystream, and the first ~256 byes of output are correlated with the key, implementations need to agree on how much of the initial output to discard. I read about that 256 byte thing on the web, but what I'm trying

Re: RC4 compatibility problems?

2006-04-14 Thread Bastian Bense
Hi, On 4/15/06, David Schwartz [EMAIL PROTECTED] wrote: This is almost always a case of the key being handled differently in the two cases. For example, in one case you may specify the key in ASCII, and in the other case in base64. One may be in hex and the other in ASCII, 'F' could