Hello, > i meet a problem.when i plant the DES to my voip gateway for the > purpose of snmpv3 support, it shows decryption error. > My gateway is running on vxworks and processor is mips32. > i guess it should be something wrong with architecture concerned > choice, such as big(little)endian? > > in md32_common.h > how should i choose the ROTATE ? > /* > * Engage compiler specific rotate intrinsic function if available. > */ > #undef ROTATE > #ifndef PEDANTIC > # if defined(_MSC_VER) || defined(__ICC) > # define ROTATE(a,n) _lrotl(a,n) > # elif defined(__MWERKS__) > # if defined(__POWERPC__) > # define ROTATE(a,n) __rlwinm(a,n,0,31) > # elif defined(__MC68K__) > /* Motorola specific tweak. <[EMAIL PROTECTED]> */ > # define ROTATE(a,n) ( n<24 ? __rol(a,n) : __ror(a,32-n) ) > # else > > #ifndef ROTATE > #define ROTATE(a,n) (((a)>>(n))+((a)<<(32-(n)))) > #endif Test this with ROTATE undefined. In this case default version will be used which is processor independent (last three lines) provided that rotation is performed on 32-bit words.
Best regards, -- Marek Marcola <[EMAIL PROTECTED]> ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]