2022-08-05 16:31:07 +09:00
|
|
|
diff -ruN a/setup.py b/setup.py
|
|
|
|
--- a/setup.py 2022-06-23 03:21:37.000000000 +0900
|
|
|
|
+++ b/setup.py 2022-08-05 16:23:28.451466769 +0900
|
|
|
|
@@ -367,13 +367,13 @@
|
|
|
|
sources=["src/CAST.c"],
|
|
|
|
py_limited_api=True),
|
2020-04-06 10:54:20 +00:00
|
|
|
Extension("Crypto.Cipher._raw_des",
|
|
|
|
- include_dirs=['src/', 'src/libtom/'],
|
|
|
|
+ include_dirs=['src/'],
|
2022-08-05 16:31:07 +09:00
|
|
|
sources=["src/DES.c"],
|
|
|
|
- py_limited_api=True),
|
2020-04-06 10:54:20 +00:00
|
|
|
+ extra_link_args=["-ltomcrypt"]),
|
|
|
|
Extension("Crypto.Cipher._raw_des3",
|
|
|
|
- include_dirs=['src/', 'src/libtom/'],
|
|
|
|
+ include_dirs=['src/'],
|
2022-08-05 16:31:07 +09:00
|
|
|
sources=["src/DES3.c"],
|
|
|
|
- py_limited_api=True),
|
2020-04-06 10:54:20 +00:00
|
|
|
+ extra_link_args=["-ltomcrypt"]),
|
|
|
|
Extension("Crypto.Util._cpuid_c",
|
|
|
|
include_dirs=['src/'],
|
2022-08-05 16:31:07 +09:00
|
|
|
sources=['src/cpuid.c'],
|
|
|
|
@@ -415,9 +415,9 @@
|
|
|
|
sources=["src/ARC4.c"],
|
|
|
|
py_limited_api=True),
|
2020-04-06 10:54:20 +00:00
|
|
|
Extension("Crypto.Cipher._Salsa20",
|
|
|
|
- include_dirs=['src/', 'src/libtom/'],
|
|
|
|
+ include_dirs=['src/'],
|
2022-08-05 16:31:07 +09:00
|
|
|
sources=["src/Salsa20.c"],
|
|
|
|
- py_limited_api=True),
|
2020-04-06 10:54:20 +00:00
|
|
|
+ extra_link_args=["-ltomcrypt"]),
|
|
|
|
Extension("Crypto.Cipher._chacha20",
|
|
|
|
include_dirs=['src/'],
|
2022-08-05 16:31:07 +09:00
|
|
|
sources=["src/chacha20.c"],
|
|
|
|
diff -ruN a/src/DES.c b/src/DES.c
|
|
|
|
--- a/src/DES.c 2022-06-23 03:21:37.000000000 +0900
|
|
|
|
+++ b/src/DES.c 2022-08-05 16:11:49.984484561 +0900
|
|
|
|
@@ -39,7 +39,7 @@
|
2020-04-06 10:54:20 +00:00
|
|
|
|
|
|
|
/* Include the actial DES implementation */
|
|
|
|
#define LTC_NO_PROTOTYPES
|
|
|
|
-#include "libtom/tomcrypt_des.c"
|
|
|
|
+#include <tomcrypt.h>
|
|
|
|
|
|
|
|
struct block_state {
|
|
|
|
symmetric_key sk;
|