diff options
author | Alfredo Cardigliano <cardigliano@ntop.org> | 2022-08-30 16:37:15 +0200 |
---|---|---|
committer | Alfredo Cardigliano <cardigliano@ntop.org> | 2022-08-30 16:37:30 +0200 |
commit | 981a72cd80e0c036e8b68e3e3279be6299521b55 (patch) | |
tree | a52035f30f5128cf05eb80fc374b634c29d43b7e | |
parent | f7907976c9234353c7b7ec81445ef4f219d93be3 (diff) |
Improve AES-NI check
-rw-r--r-- | src/lib/third_party/src/gcrypt/aesni.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/third_party/src/gcrypt/aesni.c b/src/lib/third_party/src/gcrypt/aesni.c index ce070ce0d..5a32ae692 100644 --- a/src/lib/third_party/src/gcrypt/aesni.c +++ b/src/lib/third_party/src/gcrypt/aesni.c @@ -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 |