We have an app which uses crypto++ 5.0 to
encrypt/decrypt text files across 3 platforms - W2K,
Solaris 9 and AIX.
I am now trying to add Linux (Red Hat) to this list,
but find I cannot decrypt anything encrypted on the
other platforms. These other platforms cannot decrypt
the files I can successfully encrypt/decrypt on Linux.
I am using GNU tools.
The calls to crypto++ look like this (we are using the
default encryption - the point being the app code and
calls do not change between platforms):

********code frag starts********

void EsCrypt::EsEncryptFile(const char *in, const char
*out, const char *passPhrase)
{
        //cout << "inside EncryptFile" << endl;

        FileSource f(in, true, new
DefaultEncryptorWithMAC(passPhrase, new
FileSink(out)));
}

void EsCrypt::EsDecryptFile(const char *in, const char
*out, const char *passPhrase)
{
        FileSource f(in, true, new
DefaultDecryptorWithMAC(passPhrase, new
FileSink(out)));

}

*********code frag ends*******

I am building the Linux version with g++ v 3.2.2 (on
Solaris I use g++ 3.2.3).
The Linux kernel release is 2.4.20-8

The same file encrypted under Linux and Solaris is
exactly the same size.  However, when opened in an
editor the contents are different.

I've tried to defining __INTEL__ (mentioned in
congig.h) but this doesn't seem to make any
difference. 
Perhaps there is some other setting? Has anyone else
come across this problem?

Thanks

Roger Thomas in the UK


        
        
                
___________________________________________________________
BT Yahoo! Broadband - Free modem offer, sign up online today and save �80 
http://btyahoo.yahoo.co.uk

Reply via email to