This is a drop-in replacement for pycrypto and the only version that is
now available in Ubuntu 22.04.
Signed-off-by: Jouni Malinen <j@w1.fi>
from remotehost import remote_compatible
import binascii
-from Crypto.Cipher import AES
+try:
+ from Cryptodome.Cipher import AES
+except ImportError:
+ from Crypto.Cipher import AES
import hashlib
import hmac
import logging
from tshark import run_tshark
import base64
import binascii
-from Crypto.Cipher import AES
+try:
+ from Cryptodome.Cipher import AES
+except ImportError:
+ from Crypto.Cipher import AES
import hashlib
import hmac
import os