fix for _very_ long messages

The problem is that the length of the ciphertext doesn't
scale linearly with the length of the plaintext. This is
a heuristic solution - if it doesn't work, let me know and
I will work on it some more. Dave