mirror of
https://github.com/openwrt/packages.git
synced 2025-12-19 09:01:22 +00:00
python-cryptodome: add new package
PyCryptodome is an almost drop-in replacement for the old PyCrypto library. Signed-off-by: Richard Yu <yurichard3839@gmail.com>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
--- a/lib/Cryptodome/Math/_IntegerGMP.py
|
||||
+++ b/lib/Cryptodome/Math/_IntegerGMP.py
|
||||
@@ -92,7 +92,7 @@ gmp_defs = """typedef unsigned long UNIX_ULONG;
|
||||
int __gmpz_divisible_ui_p (const mpz_t n, UNIX_ULONG d);
|
||||
"""
|
||||
|
||||
-lib = load_lib("gmp", gmp_defs)
|
||||
+lib = load_lib("libgmp.so.10", gmp_defs)
|
||||
implementation = {"library": "gmp", "api": backend}
|
||||
|
||||
if hasattr(lib, "__mpir_version"):
|
||||
Reference in New Issue
Block a user