Improve AES-NI check

This commit is contained in:
Alfredo Cardigliano
2022-08-30 16:37:30 +02:00
parent f7907976c9
commit 981a72cd80
+2 -2
View File
@@ -59,10 +59,10 @@ int mbedtls_aesni_has_support( unsigned int what )
#if defined(linux) || defined(__linux__)
unsigned int eax, ebx, ecx, edx;
if(what == MBEDTLS_AESNI_AES) {
{
/*
NOTE
This code is necessary as __get_cpuid() is not reliable
Example with Intel(R) Celeron(R) CPU N2930 (that has NO AES-NI)
the code based on __get_cpuid() reports that AES-NI is present