summaryrefslogtreecommitdiff
path: root/dev-perl/CryptX-0.80.0/CryptX-0.80.0-aes.patch
blob: b99b9813dcf505126cd2f2dbcb6d91b27a6a1658 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# git diff
diff --git a/src/ltc/headers/tomcrypt_cfg.h b/src/ltc/headers/tomcrypt_cfg.h
index 2a024aa..bb891c3 100644
--- a/src/ltc/headers/tomcrypt_cfg.h
+++ b/src/ltc/headers/tomcrypt_cfg.h
@@ -96,6 +96,9 @@ LTC_EXPORT int   LTC_CALL XSTRCMP(const char *s1, const char *s2);
          #define LTC_AMD64_SSE4_1
       #endif
    #endif
+   #if defined(__AES__)
+       #define LTC_AMD64_AES_NI
+   #endif
 #endif
 
 /* detect PPC32 */
diff --git a/src/ltc/headers/tomcrypt_private.h b/src/ltc/headers/tomcrypt_private.h
index aa251e2..ac2f28e 100644
--- a/src/ltc/headers/tomcrypt_private.h
+++ b/src/ltc/headers/tomcrypt_private.h
@@ -77,7 +77,7 @@ typedef struct
 
 /* tomcrypt_cipher.h */
 
-#if defined(LTC_AES_NI) && defined(LTC_AMD64_SSE4_1)
+#if defined(LTC_AES_NI) && defined(LTC_AMD64_AES_NI)
 #define LTC_HAS_AES_NI
 #endif
 
diff --git a/src/ltc/misc/crypt/crypt.c b/src/ltc/misc/crypt/crypt.c
index 460cd59..ce61b80 100644
--- a/src/ltc/misc/crypt/crypt.c
+++ b/src/ltc/misc/crypt/crypt.c
@@ -416,7 +416,7 @@ const char *crypt_build_settings =
 #if defined(LTC_ADLER32)
     " ADLER32 "
 #endif
-#if defined(LTC_AES_NI) && defined(LTC_AMD64_SSE4_1)
+#if defined(LTC_AES_NI) && defined(LTC_AMD64_AES_NI)
     " AES-NI "
 #endif
 #if defined(LTC_BASE64)