On Tue, May 11, 2021 at 8:15 AM Nelson João <nelsonalpal...@gmail.com> wrote: > > I have some problems when I try to compile cryptopp inside my app using the > cryptopp version 8.5 and XCode 12. > If I try using the older Xcode (11.4), I don't have a problem, but after > update the Xcode, I have some undefined methods: > CPU_ProbeARMv7(); > CPU_ProbeNEON(); > CPU_ProbePMULL(); > CPU_ProbeAES(); > CPU_ProbeSHA1(); > CPU_ProbeSHA256(); > > Exist some preprocessor to disable these methods?
On Apple platforms we don't perform CPU probes. A CPU probe is where we setup a SIGILL handler and try an instruction. If there's a SIGILL then we know the instruction is not available. On Apple platforms, memory gets corrupted when a SIGILL is encountered. We are not sure why. (OpenSSL and Botan stopped doing them, too). The define you are looking for is CRYPTOPP_NO_CPU_FEATURE_PROBES. It is usually set automatically in config_cpu.h. https://github.com/weidai11/cryptopp/blob/master/config_cpu.h#L180. Jeff -- 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 cryptopp-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/cryptopp-users/CAH8yC8no054tfT-CsJu4A1EVPPYe3gJrOS%3DQQtRbwtbJXjz4QQ%40mail.gmail.com.