Why don't you spin through the file in the two machines and determine if they 
are (1) the eact same length and (2) if their contents match.

While I have not been doing openssl programming for a while I am a programmer 
and that would the 1st thing I'd check.  You should look for byte ordering as 
well.

You would not actually have to run a MD5 checksum but it would be ok to do so.

I can offer you a little C hexdump routine if you need one.  I think it might 
even be on my website.  However you could simply write a little C program to 
read them in and then use printf() and it might give you an idea what you are 
up against.

Endian issues are not likely to be the issue.  Whatever it is it will likely be 
a little more subtle.

Terrell


On Mon, Nov 14, 2005 at 05:15:47PM +0530, Dorairaj B - CTD, Chennai. wrote:
> > Hello,
> > 
> > I am transferring a AES encrypted buffer by writing to a file in Windows
> > and then trying to decrypt the buffer from the transferred file in Linux.
> > Though i use the same key both sides, the decryption does not work.
> > 
> > I use the following:
> > 
> > windows 2000 professional with openssl-0.9.8a
> > Linux 2.4.20 with openssl-0.9.8a
> > Used fgets, fputs for transferring contents from buffer to file.
> > 
> > I suspect doing the file operation would add '\0' at the end and might
> > cause problems. 
> > 
> > Is there a standard method of transferring the encrypted message from
> > Windows to Linux and viceversa?
> > Any help on this would be useful.
> > 
> > Thanks,
> > -Dorai
> DISCLAIMER 
> This message and any attachment(s) contained here are information that is 
> confidential, proprietary to HCL Technologies 
> and its customers. Contents may be privileged or otherwise protected by law. 
> The information is solely intended for the 
> individual or the entity it is addressed to. If you are not the intended 
> recipient of this message, you are not authorized to 
> read, forward, print, retain, copy or disseminate this message or any part of 
> it. If you have received this e-mail in error, 
> please notify the sender immediately by return e-mail and delete it from your 
> computer
> 
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [email protected]
> Automated List Manager                           [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to