Fall back to system libcrypto when cryptography is unavailable (#894)

This commit is contained in:
Erik
2026-05-30 19:31:47 +03:00
committed by GitHub
parent 49e62ca142
commit 23f0e4d426
3 changed files with 132 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ import socket as _socket
from collections import deque
from typing import Dict, List, Optional, Set, Tuple
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
from ._aes import Cipher, algorithms, modes
if __name__ == '__main__' and (__package__ is None or __package__ == ''):
_repo_root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))