Answering a few questions I saw in the LibTom group on google groups (yeah I read it, just don’t reply there). DH vanished because nobody used it and it was a pain to support. Adding it back should be easy, you can’t test beyond 2048 bits because by default, TFM is configured for 4096 bit integers. See tfm.h for the FP_MAX_SIZE macro. TFM won’t build on x86-32 unless you have all of the registers available, which means -fPIC is out of the question. If you want to use it in PIC mode, use -DTFM_NO_ASM to use the slower ISO C macros. The RC4 PRNG XOR’s it’s output against the buffer you pass to rc4_read(). So if you pass the plaintext buffer as the output buffer it will “encrypt” it. Hope that helps. Tom.