1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
Description: Fix import from Cryptodome
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2024-09-07
--- python-bimmer-connected-0.16.3.orig/bimmer_connected/api/authentication.py
+++ python-bimmer-connected-0.16.3/bimmer_connected/api/authentication.py
@@ -11,8 +11,8 @@ from uuid import uuid4
import httpx
import jwt
-from Crypto.Cipher import PKCS1_v1_5
-from Crypto.PublicKey import RSA
+from Cryptodome.Cipher import PKCS1_v1_5
+from Cryptodome.PublicKey import RSA
from bimmer_connected.api.regions import Regions, get_app_version, get_ocp_apim_key, get_server_url, get_user_agent
from bimmer_connected.api.utils import (
--- python-bimmer-connected-0.16.3.orig/bimmer_connected/api/utils.py
+++ python-bimmer-connected-0.16.3/bimmer_connected/api/utils.py
@@ -15,10 +15,10 @@ from typing import Dict, List, Optional,
from uuid import uuid4
import httpx
-from Crypto.Cipher import AES
-from Crypto.Hash import SHA256
-from Crypto.Random import get_random_bytes
-from Crypto.Util.Padding import pad
+from Cryptodome.Cipher import AES
+from Cryptodome.Hash import SHA256
+from Cryptodome.Random import get_random_bytes
+from Cryptodome.Util.Padding import pad
from bimmer_connected.models import AnonymizedResponse, MyBMWAPIError, MyBMWAuthError, MyBMWQuotaError
|