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:
Richard Yu
2019-03-01 14:12:24 +08:00
parent f81ef698d5
commit 2c63742f25
6 changed files with 270 additions and 0 deletions

View File

@@ -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"):