Sorry. Here is what I did. file config.h
--------------------beginning of config.h------------------------------------------- // ***************** Important Settings ******************** /* // define this if running on a big-endian CPU #if defined(__sparc__) || defined(__hppa__) || defined(__ppc__) || defined(__mips__) || (defined(__MWERKS__) && !defined(__INTEL__)) #define IS_BIG_ENDIAN #endif // define this if running on a little-endian CPU // big endian will be assumed if IS_LITTLE_ENDIAN is not defined #ifndef IS_BIG_ENDIAN #define IS_LITTLE_ENDIAN #endif */ #define IS_LITTLE_ENDIAN //define IS_LITTLE_ENDIAN explicitly I commented out from //define to #endif and just define IS_LITTLE_ENDIAN explicitly. I generated 3DES key from Microsoft CSP and encrypted something. Then exported this DES key and used crypto++ to do decryption. I had to reverse exported DES key so that it worked correctly. we know Microsoft CSP which use little endian. I concluded crypto++ was in big endian. Is that right? If I was right, crypto++ is in big endian when IS_LITTLE_ENDIAN is defined. John ----- Original Message ----- From: "Wei Dai" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 11, 2002 5:37 PM Subject: Re: config.h Endian Setting > On Wed, Dec 11, 2002 at 12:12:03PM -0800, John Yang wrote: > > I worked on window platform. I explicitly set the #define IS_LITTLE_ENDIAN(comment out defined(__sparc__) ...). When I used Cryptlib, it is in big endian. Is that right? > > Unfortunately I can't understand your question. Please rephrase it with > more clarity. > >
