Use AES in CTR mode, with a different IV for each packet. You'll need to 
send the IV along with each packet. Also, don't forget to use a message 
authentication code, like HMAC.

On Wed, Dec 04, 2002 at 03:04:31PM -0500, Kevin J. Schmidt wrote:
> I'm using ARC4 for encrypting and decrypting a stream of data that is
> sent over a network. On a LAN, the algorithm works pretty well. But over
> a WAN or the Internet, where packets are processed at the server not
> necessarily in the order sent by the client, the ARC4 seems to break
> down and quit working. I assume this is because it's stateful. Is there
> a way to use ARC4 such that it doesn't act this way? If not, can someone
> point me to a suitable replacement in Crypto++ for ARC4 that will work
> work with sending data over a socket?
> 
> I'm using Crypto++ 4.2 on Solaris and Linux.
> 
> Thanks,
> -Kevin
> 
> 
> 

Reply via email to