On Tuesday, December 2, 2014 8:34:43 PM UTC-5, Jackson Cwach wrote: > > I am attempting to compile a program using Crypto++ and no matter what I > try I am getting an illegal instruction error. The code I am trying to > compile is from http://www.cryptopp.com/wiki/TripleDES and according to > GDB the problem is: > > *Program received signal SIGILL, Illegal instruction.* > *CryptoPP::Rijndael::Base::UncheckedSetKey (this=0x733060,* > * userKey=<optimized out>, keylen=32) at rijndael.cpp:218* > *218 rijndael.cpp: No such file or directory.* > *(gdb)* > I'm just taking a stab in the dark here since you haven't really provided any information... Try building Crypto++ with CRYPTOPP_BOOL_AESNI_INTRINSICS_AVAILABLE set to 0. I think you can set in in Crpyto++'s config.h.
config.h should also have some automatic detection code for CRYPTOPP_BOOL_AESNI_INTRINSICS_AVAILABLE. So after the automatic detection code, do something like: #undef CRYPTOPP_BOOL_AESNI_INTRINSICS_AVAILABLE #define CRYPTOPP_BOOL_AESNI_INTRINSICS_AVAILABLE 0 -- -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to [email protected]. More information about Crypto++ and this group is available at http://www.cryptopp.com. --- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
