From 3da768675de0d887c04455347feaf473971c1a30 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Tue, 25 Mar 2025 11:17:15 +0100 Subject: [PATCH] lib/milenage: use Cryptodome instead of Crypto PyCryptodome modules are available in Crypto for legacy compatibility with the old PyCrypto library, and in Cryptodome. Switch to the non-legacy name, so the Debian 12 package python3-pycryptodome can be used (there is no python3-pycrypto package in Debian anymore). --- lib/milenage.py | 4 ++-- requirements.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/milenage.py b/lib/milenage.py index 7524eb81..f7581619 100755 --- a/lib/milenage.py +++ b/lib/milenage.py @@ -8,8 +8,8 @@ """ import hmac -from Crypto.Cipher import AES -from Crypto.Random import random +from Cryptodome.Cipher import AES +from Cryptodome.Random import random from lte import BaseLTEAuthAlgo diff --git a/requirements.txt b/requirements.txt index 1682fb6b..5d5e9449 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,7 @@ flask_restx==1.1.0 Jinja2==3.1.2 mongo==0.2.0 prometheus_client==0.16.0 -pycryptodome==3.17 +pycryptodomex==3.17 pymongo==4.3.3 pysctp==0.7.2 pysnmp==4.4.12 @@ -20,4 +20,4 @@ pydantic==2.8.2 pydantic_core==2.20.1 tzlocal==4.3 influxdb==5.3.1 -xmltodict==0.14.2 \ No newline at end of file +xmltodict==0.14.2