diff --git a/node/AES.cpp b/node/AES.cpp index ee9cd12ad..fd4b32e04 100644 --- a/node/AES.cpp +++ b/node/AES.cpp @@ -62,7 +62,7 @@ static bool _zt_aesni_supported() : "=a"(eax),"=b"(ebx),"=c"(ecx),"=d"(edx) : "a"(1),"c"(0) ); - return ((ecx & (1 << 25)) != 0); + return (((ecx & (1 << 25)) != 0) && ((ecx & (1 << 1)) != 0)); // check for both AES-NI and PCLMUL #endif } const bool AES::HW_ACCEL = _zt_aesni_supported();