Since you only have 2 algorythmns mentioned (A
hashing algorythmn and twofish), i suggest re-writing
the encryption to run through a simple API. An
example might be like this.
API_Create_key(void *passphrase, int blocksize);
The intention is so you could make it so if someone
else wanted to, they could download your sources, and
simply add their encryption algorythmn, or another,
and just write their end using your API, or some
generic API (like the linux sources), and plug it
right in and compile and test it.
I would like to see my encryption program at work on
this, since it doubles as a stream, block and hasing
cipher, and could be used throughout the entire chat
program. (depending on which function you use)
Contact me if you want to talk more on the matter.
Era Scarecrow