Re: RSA_public_encrypt/RSA_private decrypt giving inconsistent results in Windows

2013-10-31 Thread Shelli Skinner
I am writing to/reading from a file. Opening the file in binary mode seems to have done the trick. Thanks! On Wed, Oct 30, 2013 at 9:30 PM, Dave Thompson wrote: > First, what do you mean by string? I assume you realize that raw > RSA-encrypted values > > (and other modern algorithms like

RE: RSA_public_encrypt/RSA_private decrypt giving inconsistent results in Windows

2013-10-30 Thread Dave Thompson
First, what do you mean by string? I assume you realize that raw RSA-encrypted values (and other modern algorithms like AES and RC4 also) are binary data which can contain zero bytes and thus are not C strings; strlen() etc. won't work right. This would cause trouble on all platforms, but onl