Ver Fonte

Add option to disable AES-NI at compile time

One can now define `LTC_NO_AES_NI` to disable AES-NI.

Signed-off-by: Steffen Jaeckel <[email protected]>
Steffen Jaeckel há 2 anos atrás
pai
commit
d3a297c341
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      src/headers/tomcrypt_custom.h

+ 3 - 1
src/headers/tomcrypt_custom.h

@@ -179,7 +179,9 @@
 #define LTC_RC6
 #define LTC_SAFERP
 #define LTC_RIJNDAEL
-#define LTC_AES_NI
+#ifndef LTC_NO_AES_NI
+   #define LTC_AES_NI
+#endif
 #define LTC_XTEA
 /* _TABLES tells it to use tables during setup, _SMALL means to use the smaller scheduled key format
  * (saves 4KB of ram), _ALL_TABLES enables all tables during setup */