You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.3 KiB
37 lines
1.3 KiB
3 years ago
|
diff -up ./setup.py.bak ./setup.py
|
||
10 months ago
|
--- ./setup.py.bak 2022-06-22 20:21:37.000000000 +0200
|
||
|
+++ ./setup.py 2022-06-23 11:09:44.260182023 +0200
|
||
|
@@ -369,10 +369,12 @@ ext_modules = [
|
||
3 years ago
|
Extension("Crypto.Cipher._raw_des",
|
||
10 months ago
|
include_dirs=['src/', 'src/libtom/'],
|
||
3 years ago
|
sources=["src/DES.c"],
|
||
|
+ extra_link_args=["-ltomcrypt"],
|
||
|
py_limited_api=True),
|
||
|
Extension("Crypto.Cipher._raw_des3",
|
||
10 months ago
|
include_dirs=['src/', 'src/libtom/'],
|
||
3 years ago
|
sources=["src/DES3.c"],
|
||
|
+ extra_link_args=["-ltomcrypt"],
|
||
|
py_limited_api=True),
|
||
|
Extension("Crypto.Util._cpuid_c",
|
||
|
include_dirs=['src/'],
|
||
10 months ago
|
@@ -417,6 +419,7 @@ ext_modules = [
|
||
3 years ago
|
Extension("Crypto.Cipher._Salsa20",
|
||
10 months ago
|
include_dirs=['src/', 'src/libtom/'],
|
||
3 years ago
|
sources=["src/Salsa20.c"],
|
||
|
+ extra_link_args=["-ltomcrypt"],
|
||
|
py_limited_api=True),
|
||
|
Extension("Crypto.Cipher._chacha20",
|
||
|
include_dirs=['src/'],
|
||
|
diff -up ./src/DES.c.bak ./src/DES.c
|
||
10 months ago
|
--- ./src/DES.c.bak 2022-06-22 20:21:37.000000000 +0200
|
||
|
+++ ./src/DES.c 2022-06-23 11:10:58.166711358 +0200
|
||
3 years ago
|
@@ -39,7 +39,7 @@ FAKE_INIT(raw_des3)
|
||
|
|
||
|
/* Include the actial DES implementation */
|
||
|
#define LTC_NO_PROTOTYPES
|
||
|
-#include "libtom/tomcrypt_des.c"
|
||
|
+#include <tomcrypt.h>
|
||
|
|
||
|
struct block_state {
|
||
|
symmetric_key sk;
|