Clear AESNI feature flag for x86_64.
authorWerner Koch <wk@gnupg.org>
Thu, 21 Jun 2012 09:10:39 +0000 (11:10 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 21 Jun 2012 09:10:39 +0000 (11:10 +0200)
* src/hwfeatures.c (_gcry_detect_hw_features) [__x86_64__]: Clear
AESNI feature flag.

src/hwfeatures.c

index 396c71b..cf80fe0 100644 (file)
@@ -287,6 +287,9 @@ _gcry_detect_hw_features (unsigned int disabled_features)
 # ifdef __GNUC__
   {
     detect_x86_64_gnuc ();
+    /* We don't have AESNI support for 64 bit yet.  Thus we should not
+       announce it.  */
+    hw_features &= ~HWF_INTEL_AESNI;
   }
 # endif
 #endif