Alex Pankratov wrote:
Block cipher. I assume it's a typo, since you said you were using TwoFish.
Using a block cipher in CTR mode creates a stream cipher (ie it generates a keystream that you XOR with the plaintext to produce the ciphertext).
Using CTR instead of any other chaining mode (excluding ECB) has exactly one benefit - the counter field can be reused for replay protection.
There's another benefit that's relevant to the question of UDP vs TCP: it's easy to decrypt blocks that arrive out of order.
Cheers, Michael _______________________________________________ p2p-hackers mailing list [email protected] http://lists.zooko.com/mailman/listinfo/p2p-hackers
