in reply to RSA encryption on Win32
A bit more on the question above...
I have tried altering the code to use files opened via sysread and sysopen, specifying a binary read. It still doesn't work.
This seems to disprove that the code might be having trouble with CR/LFs.