Disabling aesni detection on OSX

This commit is contained in:
iceman1001 2022-03-27 11:03:13 +02:00
parent 08284414b0
commit a98b9590c6

View file

@ -374,11 +374,15 @@ int main(int argc, char *argv[]) {
uint64_t start_time = atoi(argv[3]);
const bool support_aesni = platform_aes_hw_available();
printf("Crypto algo............ " _GREEN_("%s") "\n", algostr);
printf("LCR Random generator... " _GREEN_("%s") "\n", generators[g_idx].Name);
printf("AES-NI detected........ " _GREEN_("%s") "\n", (support_aesni) ? "yes" : "no");
#if defined(__APPLE__) || defined(__MACH__)
#else
bool support_aesni = platform_aes_hw_available();
printf("AES-NI detected........ " _GREEN_("%s") "\n", (support_aesni) ? "yes" : "no");
#endif
printf("Starting timestamp..... ");
print_time(start_time);