Archive for the 'Uncategorized' Category

Tweaking RC4 to support streaming, and TLSSocket

Wednesday, November 7th, 2007

Previously, would work as a block cipher. Every call to encrypt() and decrypt() would re-initialize its internal state, guaranteeing the same instance could encrypt and decrypt the same data.
Unfortunately, that’s not how TLS expects things to work. rc4 is seen as a stream cipher, and it is expected to maintain its internal state, so (…)